diff --git a/lib/marked.js b/lib/marked.js index 233992e7d9..67cfc9c171 100644 --- a/lib/marked.js +++ b/lib/marked.js @@ -119,7 +119,7 @@ block.pedantic = merge({}, block.normal, { html: edit( '^ *(?:comment *(?:\\n|\\s*$)' + '|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)' // closed tag - + '|]*)*?/?> *(?:\\n{2,}|\\s*$))') + + '|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))') .replace('comment', block._comment) .replace(/tag/g, '(?!(?:' + 'a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub'