Skip to content

Commit f6ba2e3

Browse files
authored
fix: remove smartLists from docs and code (#2596)
* Removing smarLists for issue #2582 * Removing smartLists for issue #2582 * removing smarLists for issue #2582 * removing smartLists for issue #2582 * removing samrtLists for issue #2582 * removing smartLists for issue #2582 * removing smartLists for issue #2582
1 parent e731507 commit f6ba2e3

File tree

7 files changed

+3
-13
lines changed

7 files changed

+3
-13
lines changed

docs/USING_ADVANCED.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ marked.setOptions({
3131
gfm: true,
3232
breaks: false,
3333
sanitize: false,
34-
smartLists: true,
3534
smartypants: false,
3635
xhtml: false
3736
});
@@ -58,7 +57,6 @@ console.log(marked.parse(markdownString));
5857
|sanitize |`boolean` |`false` |v0.2.1 |If true, sanitize the HTML passed into `markdownString` with the `sanitizer` function.<br>**Warning**: This feature is deprecated and it should NOT be used as it cannot be considered secure.<br>Instead use a sanitize library, like [DOMPurify](https://github.com/cure53/DOMPurify) (recommended), [sanitize-html](https://github.com/apostrophecms/sanitize-html) or [insane](https://github.com/bevacqua/insane) on the output HTML! |
5958
|sanitizer |`function`|`null` |v0.3.4 |A function to sanitize the HTML passed into `markdownString`.|
6059
|silent |`boolean` |`false` |v0.2.7 |If true, the parser does not throw any exception.|
61-
|smartLists |`boolean` |`false` |v0.2.8 |If true, use smarter list behavior than those found in `markdown.pl`.|
6260
|smartypants |`boolean` |`false` |v0.2.9 |If true, use "smart" typographic punctuation for things like quotes and dashes.|
6361
|tokenizer |`object` |`new Tokenizer()`|v1.0.0|An object containing functions to create tokens from markdown. See [extensibility](/using_pro) for more details.|
6462
|walkTokens |`function` |`null`|v1.1.0|A function which is called for every token. See [extensibility](/using_pro) for more details.|

docs/USING_PRO.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ marked.use({
1515
gfm: true,
1616
breaks: false,
1717
sanitize: false,
18-
smartLists: true,
1918
smartypants: false,
2019
xhtml: false
2120
});

lib/marked.cjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ function getDefaults() {
8787
sanitize: false,
8888
sanitizer: null,
8989
silent: false,
90-
smartLists: false,
9190
smartypants: false,
9291
tokenizer: null,
9392
walkTokens: null,

lib/marked.esm.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ function getDefaults() {
2626
sanitize: false,
2727
sanitizer: null,
2828
silent: false,
29-
smartLists: false,
3029
smartypants: false,
3130
tokenizer: null,
3231
walkTokens: null,

lib/marked.umd.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@
8989
sanitize: false,
9090
sanitizer: null,
9191
silent: false,
92-
smartLists: false,
9392
smartypants: false,
9493
tokenizer: null,
9594
walkTokens: null,

src/defaults.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export function getDefaults() {
1515
sanitize: false,
1616
sanitizer: null,
1717
silent: false,
18-
smartLists: false,
1918
smartypants: false,
2019
tokenizer: null,
2120
walkTokens: null,

test/bench.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ export async function runBench(options) {
3838
gfm: false,
3939
breaks: false,
4040
pedantic: false,
41-
sanitize: false,
42-
smartLists: false
41+
sanitize: false
4342
});
4443
if (options.marked) {
4544
cjsMarked.setOptions(options.marked);
@@ -50,8 +49,7 @@ export async function runBench(options) {
5049
gfm: false,
5150
breaks: false,
5251
pedantic: false,
53-
sanitize: false,
54-
smartLists: false
52+
sanitize: false
5553
});
5654
if (options.marked) {
5755
esmMarked.setOptions(options.marked);
@@ -62,8 +60,7 @@ export async function runBench(options) {
6260
// gfm: true,
6361
// breaks: false,
6462
// pedantic: false,
65-
// sanitize: false,
66-
// smartLists: false
63+
// sanitize: false
6764
// });
6865
// if (options.marked) {
6966
// esmMarked.setOptions(options.marked);

0 commit comments

Comments
 (0)