Skip to content

Commit

Permalink
added markdown escapes for _*~\
Browse files Browse the repository at this point in the history
Fixes: #47
  • Loading branch information
rvagg committed Mar 1, 2018
1 parent 44b1f98 commit 2b5a600
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commit-to-output.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const chalk = require('chalk')


function cleanMarkdown (txt) {
// escape []<>
return txt.replace(/([\[\]<>])/g, '\\$1')
// escape _~*\[]<>
return txt.replace(/([_~*\\\[\]<>])/g, '\\$1')
}


Expand Down

0 comments on commit 2b5a600

Please sign in to comment.