Skip to content

Commit 7a9e35e

Browse files
authored
Merge pull request #1249 from UziTech/p-fix
fix paragraph
2 parents 15ae1c9 + 9d5ecbe commit 7a9e35e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/marked.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var block = {
3333
def: /^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,
3434
table: noop,
3535
lheading: /^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,
36-
paragraph: /^([^\n]+(?:\n?(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)+)/,
36+
paragraph: /^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/,
3737
text: /^[^\n]+/
3838
};
3939

0 commit comments

Comments
 (0)