Skip to content

Commit

Permalink
Fix markdown to jira strikethrough
Browse files Browse the repository at this point in the history
  • Loading branch information
karimatthews committed Jan 25, 2019
1 parent 72db65b commit eb0574a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ J2M.prototype.to_jira = function (str) {
return to + content + to;
})
// Other kind of strikethrough
.replace(/\s+~~(.*?)~~\s+/g, ' -$1- ')
.replace(/(\s|^)+\~~(.*?)\~~+/g, '$1-$2-')
// Named/Un-Named Code Block
.replace(/`{3,}(\w+)?((?:\n|[^`])+)`{3,}/g, function (match, synt, content) {
let code = '{code';
Expand Down

0 comments on commit eb0574a

Please sign in to comment.