Skip to content

Commit

Permalink
fix comments. see #381.
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Apr 7, 2014
1 parent dc3b344 commit da05668
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/marked.js
Expand Up @@ -20,7 +20,10 @@ var block = {
lheading: /^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,
blockquote: /^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,
list: /^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,
html: /^ *(?:comment|closed|closing) *(?:\n{2,}|\s*$)/,
// html: /^ *(?:comment|closed|closing) *(?:\n{2,}|\s*$)/,
// $ echo -e '<!---\n--->\n## This should be rendered\n<!---\n--->' | marked
// $ echo -e '<!--foo-->\n## foo' | marked
html: /^ *(?:comment *(?:\n|\s*$)|closed *(?:\n|\s*$)|closing *(?:\n{2,}|\s*$))/,
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,
table: noop,
paragraph: /^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,
Expand Down

0 comments on commit da05668

Please sign in to comment.