Browse Source

Trivial bugfix in the links rule

pull/14/head
Alex Kocharin 10 years ago
parent
commit
bbac451a42
  1. 2
      lib/rules_inline/links.js

2
lib/rules_inline/links.js

@ -185,7 +185,7 @@ function links(state) {
labelEnd = parseLinkLabel(state, start);
// parser failed to find ']', so it's not a valid link
if (pos < 0) { return false; }
if (labelEnd < 0) { return false; }
pos = labelEnd + 1;
if (pos < max && state.src.charCodeAt(pos) === 0x28/* ( */) {

Loading…
Cancel
Save