FIX: Markdown formatting error

This commit is contained in:
Robin Ward 2014-04-23 16:46:08 -04:00
parent 26a5856a71
commit 91679c61d5
1 changed files with 7 additions and 5 deletions

View File

@ -1354,6 +1354,7 @@
// [links][] uses links as its reference
attrs = { ref: ( m[ 1 ] || String(children) ).toLowerCase(), original: orig.substr( 0, consumed ) };
if (children && children.length > 0) {
link = [ "link_ref", attrs ].concat( children );
// We can't check if the reference is known here as it likely wont be
@ -1361,6 +1362,7 @@
// Store the original so that conversion can revert if the ref isn't found.
return [ consumed, link ];
}
}
// Another check for references
m = orig.match(/^\s*\[(.*?)\]:\s*(\S+)(?:\s+(?:(['"])(.*?)\3|\((.*?)\)))?\n?/);