From 3ad276bcc56f29d64e718db70b58b84473480a01 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sat, 26 Apr 2014 07:35:47 -0500 Subject: [PATCH] Revert "fix html comments. fixes #381 and #389." This reverts commit 288a6478e229ceead86a5587782bc5d16885d0e5. --- lib/marked.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/marked.js b/lib/marked.js index 5d2d5e57..a6fcfcdc 100644 --- a/lib/marked.js +++ b/lib/marked.js @@ -20,7 +20,7 @@ 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 *(?:\n|\s*$)|closed *(?:\n|\s*$)|closing *(?:\n{2,}|\s*$))/, + html: /^ *(?:comment|closed|closing) *(?:\n{2,}|\s*$)/, def: /^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/, table: noop, paragraph: /^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,