Skip to content

Commit

Permalink
fix breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech committed Jun 28, 2019
1 parent 9d54d62 commit 322e68a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/marked.js
Expand Up @@ -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()
});

/**
Expand Down

0 comments on commit 322e68a

Please sign in to comment.