Skip to content

Commit

Permalink
Merge pull request #1060 from UziTech/patch-1059
Browse files Browse the repository at this point in the history
revert number of capturing parens in #1013
  • Loading branch information
joshbruce committed Feb 19, 2018
2 parents f663cb4 + 9a757fc commit 9030adf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/marked.js
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ var inline = {
nolink: /^!?\[((?:\[[^\]]*\]|\\[\[\]]|[^\[\]])*)\]/,
strong: /^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,
em: /^_([^\s_](?:[^_]|__)+?[^\s_])_\b|^\*((?:\*\*|[^*])+?)\*(?!\*)/,
code: /^(`+)(\s*)([\s\S]*?[^`]?)\2\1(?!`)/,
code: /^(`+)\s*([\s\S]*?[^`]?)\s*\1(?!`)/,
br: /^ {2,}\n(?!\s*$)/,
del: noop,
text: /^[\s\S]+?(?=[\\<!\[`*]|\b_| {2,}\n|$)/
Expand Down Expand Up @@ -691,7 +691,7 @@ InlineLexer.prototype.output = function(src) {
// code
if (cap = this.rules.code.exec(src)) {
src = src.substring(cap[0].length);
out += this.renderer.codespan(escape(cap[3].trim(), true));
out += this.renderer.codespan(escape(cap[2].trim(), true));
continue;
}

Expand Down

0 comments on commit 9030adf

Please sign in to comment.