Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing smartLists from docs and code #2596

Merged
merged 7 commits into from
Oct 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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