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 da4d967 commit e774f77
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/marked.js
Original file line number Diff line number Diff line change
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 e774f77

Please sign in to comment.