From e774f77e82079fa0ff891c861b0fb5238af5ad6a Mon Sep 17 00:00:00 2001 From: Tony Brix Date: Fri, 28 Jun 2019 11:25:37 -0500 Subject: [PATCH] fix breaks --- lib/marked.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/marked.js b/lib/marked.js index 86286794e5..d07c39618f 100644 --- a/lib/marked.js +++ b/lib/marked.js @@ -634,7 +634,10 @@ inline.gfm.url = edit(inline.gfm.url, 'i') inline.breaks = merge({}, inline.gfm, { br: edit(inline.br).replace('{2,}', '*').getRegex(), - text: edit(inline.gfm.text).replace(/\{2,\}/g, '*').getRegex() + text: edit(inline.gfm.text) + .replace('\\b_', '\\b_| {2,}\\n') + .replace(/\{2,\}/g, '*') + .getRegex() }); /**