Skip to content

Commit 0f0b763

Browse files
committedMar 12, 2019
allow html without \n after
1 parent d069d0d commit 0f0b763

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎lib/marked.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ var block = {
2727
+ '|<![A-Z][\\s\\S]*?>\\n*' // (4)
2828
+ '|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*' // (5)
2929
+ '|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)' // (6)
30-
+ '|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=\\h*\\n)[\\s\\S]*?(?:\\n{2,}|$)' // (7) open tag
31-
+ '|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=\\h*\\n)[\\s\\S]*?(?:\\n{2,}|$)' // (7) closing tag
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
3232
+ ')',
3333
def: /^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,
3434
table: noop,

0 commit comments

Comments
 (0)