We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f663cb4 + 9a757fc commit 9030adfCopy full SHA for 9030adf
lib/marked.js
@@ -468,7 +468,7 @@ var inline = {
468
nolink: /^!?\[((?:\[[^\]]*\]|\\[\[\]]|[^\[\]])*)\]/,
469
strong: /^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,
470
em: /^_([^\s_](?:[^_]|__)+?[^\s_])_\b|^\*((?:\*\*|[^*])+?)\*(?!\*)/,
471
- code: /^(`+)(\s*)([\s\S]*?[^`]?)\2\1(?!`)/,
+ code: /^(`+)\s*([\s\S]*?[^`]?)\s*\1(?!`)/,
472
br: /^ {2,}\n(?!\s*$)/,
473
del: noop,
474
text: /^[\s\S]+?(?=[\\<!\[`*]|\b_| {2,}\n|$)/
@@ -691,7 +691,7 @@ InlineLexer.prototype.output = function(src) {
691
// code
692
if (cap = this.rules.code.exec(src)) {
693
src = src.substring(cap[0].length);
694
- out += this.renderer.codespan(escape(cap[3].trim(), true));
+ out += this.renderer.codespan(escape(cap[2].trim(), true));
695
continue;
696
}
697
0 commit comments