We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1089fe commit 246dd3dCopy full SHA for 246dd3d
lib/marked.js
@@ -27,8 +27,8 @@ var block = {
27
+ '|<![A-Z][\\s\\S]*?>\\n*' // (4)
28
+ '|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*' // (5)
29
+ '|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)' // (6)
30
- + '|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=\\n|$)[\\s\\S]*?(?:\\n{2,}|$)' // (7) open tag
31
- + '|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=\\n|$)[\\s\\S]*?(?:\\n{2,}|$)' // (7) closing tag
+ + '|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*\\n|$)[\\s\\S]*?(?:\\n{2,}|$)' // (7) open tag
+ + '|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*\\n|$)[\\s\\S]*?(?:\\n{2,}|$)' // (7) closing tag
32
+ ')',
33
def: /^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,
34
table: noop,
0 commit comments