From 9d5ecbe565114e116aef394dde1da71455ee41ce Mon Sep 17 00:00:00 2001 From: Tony Brix Date: Wed, 2 May 2018 12:05:36 -0500 Subject: [PATCH] fix paragraph --- lib/marked.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/marked.js b/lib/marked.js index 2b40cfaf41..9a6aeb23ea 100644 --- a/lib/marked.js +++ b/lib/marked.js @@ -33,7 +33,7 @@ var block = { def: /^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/, table: noop, lheading: /^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/, - paragraph: /^([^\n]+(?:\n?(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)+)/, + paragraph: /^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/, text: /^[^\n]+/ };