diff --git a/README.md b/README.md index 99dc842..42d87e6 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ marked: - **smartypants** - Use "smart" typographic punctuation for things like quotes and dashes. - **quotes** - Defines the double and single quotes used for substituting regular quotes if **smartypants** is enabled. * Example: '«»“”' - * "double" will be turned into «single» + * "double" will be turned into «double» * 'single' will be turned into “single” * Both double and single quotes substitution must be specified, otherwise it will be silently ignored. - **modifyAnchors** - Transform the anchorIds into lower case (`1`) or upper case (`2`). diff --git a/lib/renderer.js b/lib/renderer.js index e31b91a..47f5944 100644 --- a/lib/renderer.js +++ b/lib/renderer.js @@ -216,7 +216,7 @@ class Tokenizer extends MarkedTokenizer { } // Override smartypants - inlineText(src, inRawBlock) { + inlineText(src) { const { options, rules } = this; const { quotes, smartypants: isSmarty } = options; @@ -224,7 +224,7 @@ class Tokenizer extends MarkedTokenizer { const cap = rules.inline.text.exec(src); if (cap) { let text; - if (inRawBlock) { + if (this.lexer.state.inRawBlock) { text = cap[0]; } else { text = escape(isSmarty ? smartypants(cap[0], quotes) : cap[0]);