Skip to content

Commit

Permalink
fix: return raw if is url in inlineText function
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshinorin committed Dec 31, 2021
1 parent 9e1c7ad commit b8ca03c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/renderer.js
Expand Up @@ -187,7 +187,7 @@ class Tokenizer extends MarkedTokenizer {
const cap = rules.inline.text.exec(src);
if (cap) {
let text;
if (this.lexer.state.inRawBlock) {
if (this.lexer.state.inRawBlock || this.rules.inline.url.exec(src)) {
text = cap[0];
} else {
text = escape(isSmarty ? smartypants(cap[0], quotes) : cap[0]);
Expand Down

0 comments on commit b8ca03c

Please sign in to comment.