Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
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
Next Next commit
fix: rename inconsistent function
  • Loading branch information
cyanxiao committed Dec 9, 2021
commit 191202999ec03948e3f22e9b324fb84aa71f25d3
4 changes: 2 additions & 2 deletions docs/USING_PRO.md
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ The renderer function has access to the parser in the `this` object, which can b
**Example:** Add a custom syntax to generate `<dl>` description lists.

``` js
const descriptionlist = {
const descriptionList = {
name: 'descriptionList',
level: 'block', // Is this a block-level or inline-level tokenizer?
start(src) { return src.match(/:[^:\n]/)?.index; }, // Hint to Marked.js to stop and check for a match
Expand Down Expand Up @@ -413,7 +413,7 @@ function walkTokens(token) { // Post-processing on the co
token.tokens = this.Lexer.lexInline(token.text)
}
}
marked.use({ extensions: [descriptionlist, description], walkTokens });
marked.use({ extensions: [descriptionList, description], walkTokens });

// EQUIVALENT TO:

Expand Down