Skip to content

Commit

Permalink
fix: remove smartLists from docs and code (#2596)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
mstomar698 authored Oct 1, 2022
1 parent e731507 commit f6ba2e3
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 13 deletions.
2 changes: 0 additions & 2 deletions docs/USING_ADVANCED.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ marked.setOptions({
gfm: true,
breaks: false,
sanitize: false,
smartLists: true,
smartypants: false,
xhtml: false
});
Expand All @@ -58,7 +57,6 @@ console.log(marked.parse(markdownString));
|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! |
|sanitizer |`function`|`null` |v0.3.4 |A function to sanitize the HTML passed into `markdownString`.|
|silent |`boolean` |`false` |v0.2.7 |If true, the parser does not throw any exception.|
|smartLists |`boolean` |`false` |v0.2.8 |If true, use smarter list behavior than those found in `markdown.pl`.|
|smartypants |`boolean` |`false` |v0.2.9 |If true, use "smart" typographic punctuation for things like quotes and dashes.|
|tokenizer |`object` |`new Tokenizer()`|v1.0.0|An object containing functions to create tokens from markdown. See [extensibility](/using_pro) for more details.|
|walkTokens |`function` |`null`|v1.1.0|A function which is called for every token. See [extensibility](/using_pro) for more details.|
Expand Down
1 change: 0 additions & 1 deletion docs/USING_PRO.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ marked.use({
gfm: true,
breaks: false,
sanitize: false,
smartLists: true,
smartypants: false,
xhtml: false
});
Expand Down
1 change: 0 additions & 1 deletion lib/marked.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ function getDefaults() {
sanitize: false,
sanitizer: null,
silent: false,
smartLists: false,
smartypants: false,
tokenizer: null,
walkTokens: null,
Expand Down
1 change: 0 additions & 1 deletion lib/marked.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ function getDefaults() {
sanitize: false,
sanitizer: null,
silent: false,
smartLists: false,
smartypants: false,
tokenizer: null,
walkTokens: null,
Expand Down
1 change: 0 additions & 1 deletion lib/marked.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@
sanitize: false,
sanitizer: null,
silent: false,
smartLists: false,
smartypants: false,
tokenizer: null,
walkTokens: null,
Expand Down
1 change: 0 additions & 1 deletion src/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export function getDefaults() {
sanitize: false,
sanitizer: null,
silent: false,
smartLists: false,
smartypants: false,
tokenizer: null,
walkTokens: null,
Expand Down
9 changes: 3 additions & 6 deletions test/bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ export async function runBench(options) {
gfm: false,
breaks: false,
pedantic: false,
sanitize: false,
smartLists: false
sanitize: false
});
if (options.marked) {
cjsMarked.setOptions(options.marked);
Expand All @@ -50,8 +49,7 @@ export async function runBench(options) {
gfm: false,
breaks: false,
pedantic: false,
sanitize: false,
smartLists: false
sanitize: false
});
if (options.marked) {
esmMarked.setOptions(options.marked);
Expand All @@ -62,8 +60,7 @@ export async function runBench(options) {
// gfm: true,
// breaks: false,
// pedantic: false,
// sanitize: false,
// smartLists: false
// sanitize: false
// });
// if (options.marked) {
// esmMarked.setOptions(options.marked);
Expand Down

1 comment on commit f6ba2e3

@vercel
Copy link

@vercel vercel bot commented on f6ba2e3 Oct 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.