ignore angle brackets in ref links. fixes #101.

This commit is contained in:
Christopher Jeffrey 2013-01-09 18:55:33 -06:00
parent 4cc2978385
commit decd5893b0

View File

@ -21,7 +21,7 @@ var block = {
blockquote: /^( *>[^\n]+(\n[^\n]+)*\n*)+/,
list: /^( *)(bull) [\s\S]+?(?:hr|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,
html: /^ *(?:comment|closed|closing) *(?:\n{2,}|\s*$)/,
def: /^ *\[([^\]]+)\]: *([^\s]+)(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,
def: /^ *\[([^\]]+)\]: *<?([^\s]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,
table: noop,
paragraph: /^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,
text: /^[^\n]+/