Skip to content

Commit

Permalink
escape <> in markdown
Browse files Browse the repository at this point in the history
Fixes: #43
  • Loading branch information
rvagg committed Feb 22, 2017
1 parent 94ff06f commit 01077e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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) {
// just escape '[' & ']'
return txt.replace(/([\[\]])/g, '\\$1')
// escape []<>
return txt.replace(/([\[\]<>])/g, '\\$1')
}


Expand Down Expand Up @@ -67,4 +67,4 @@ function commitToOutput (commit, simple, ghId) {
}


module.exports = commitToOutput
module.exports = commitToOutput

0 comments on commit 01077e4

Please sign in to comment.