Skip to content

Commit e709bd7

Browse files
authored
chore(docs): rename inconsistent function (#2316)
1 parent 547516d commit e709bd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/USING_PRO.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ The renderer function has access to the parser in the `this` object, which can b
362362
**Example:** Add a custom syntax to generate `<dl>` description lists.
363363

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

418418
// EQUIVALENT TO:
419419

0 commit comments

Comments
 (0)