Skip to content

Commit 51680e9

Browse files
committed
Merge branch 'v3'
* v3: (142 commits) Correct the incorrect or unnatural English expressions Thanks for @jonasbn ! Update examples according to new default values Simplify the example Replace ":point_left:" to "◀" Remove psd and gifcask files Remove unnecessary bracket attributes Modify samples Add gitter badge Update tests according to new specification (default bracket becomes round) Highlight note on top Add link to Upgrade Guide on README Change title of message Update feature section's TOC Change example not same as defaults Fix codeblock Mention defaults.bracket Change levels default value Change bracket default value Fix default behavior Fix typo ... # Conflicts: # README.md
2 parents 4a08e9d + c87a679 commit 51680e9

38 files changed

+1753
-1274
lines changed

.coveralls.yml

-1
This file was deleted.

.travis.yml

-4
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,14 @@ script:
3737
# - sh travis.sh run_syntax_tests
3838

3939
after_success:
40-
# remove the following if `coveralls` is not needed
4140
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
4241
brew update;
4342
brew install python3;
44-
pip3 install python-coveralls;
4543
pip3 install codecov;
4644
fi
4745
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
48-
pip install python-coveralls;
4946
pip install codecov;
5047
fi
51-
- coveralls
5248
- codecov -t e41883b8-547a-4728-a703-d8e1bbedfcf8
5349

5450
notifications:

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Changes in MarkdownTOC
22
===========================
33

4+
## 2.8.0
5+
6+
- Allow regular expressions in 'id_replacements' Ref: #113
7+
48
## 2.7.1
59

610
- Drop BeautifulSoup dependency. Ref: #111

MarkdownTOC.sublime-settings

+31-16
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,35 @@
11
{
2-
"default_autoanchor": false,
3-
"default_autolink": false,
4-
"default_bracket": "square",
5-
"default_depth": 2,
6-
"default_indent": "\t",
7-
"default_remove_image": true,
8-
"default_link_prefix": "",
9-
"default_list_bullets": "-",
10-
"default_lowercase": true,
11-
"default_lowercase_only_ascii": true,
12-
"default_style": "unordered",
13-
"default_uri_encoding": true,
14-
"default_markdown_preview": false,
15-
"id_replacements": {
16-
"-": " ",
17-
"" : ["&lt;","&gt;","&amp;","&apos;","&quot;","&#60;","&#62;","&#38;","&#39;","&#34;","!","#","$","&","'","(",")","*","+",",","/",":",";","=","_","?","@","[","]","`","\"", ".","<",">","{","}","","®","©"]
2+
"defaults": {
3+
"autoanchor": false,
4+
"autolink": false,
5+
"bracket": "round",
6+
"levels": [1,2,3,4,5,6],
7+
"indent": "\t",
8+
"remove_image": true,
9+
"link_prefix": "",
10+
"bullets": ["-"],
11+
"lowercase": "only_ascii",
12+
"style": "unordered",
13+
"uri_encoding": true,
14+
"markdown_preview": ""
1815
},
16+
"id_replacements": [
17+
{
18+
"pattern": "[_*]{2}([^\\s])[_*]{2}",
19+
"replacement": "\\1"
20+
},
21+
{
22+
"pattern": "[_*]([^\\s])[_*]",
23+
"replacement": "\\1"
24+
},
25+
{
26+
"pattern": "\\s+",
27+
"replacement": "-"
28+
},
29+
{
30+
"pattern": "&lt;|&gt;|&amp;|&apos;|&quot;|&#60;|&#62;|&#38;|&#39;|&#34;|!|#|$|&|'|\\(|\\)|\\*|\\+|,|/|:|;|=|\\?|@|\\[|\\]|`|\"|\\.|\\\\|<|>|{|}|™|®|©",
31+
"replacement": ""
32+
}
33+
],
1934
"logging": false
2035
}

0 commit comments

Comments
 (0)