Skip to content

Commit

Permalink
chore(docs): rename inconsistent function (#2316)
Browse files Browse the repository at this point in the history
  • Loading branch information
imchell committed Dec 9, 2021
1 parent 547516d commit e709bd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/USING_PRO.md
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

1 comment on commit e709bd7

@vercel
Copy link

@vercel vercel bot commented on e709bd7 Dec 9, 2021

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.