Skip to content

Commit

Permalink
chore: add more markdown tokens to be removed
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Apr 26, 2018
1 parent c5347c6 commit 3116afe
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/util/parseHeaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ const unescapeHtml = html => html
.replace(/>/g, '>')

const removeMarkdownToken = str => str
.replace(/`(.*)`/, '$1')
.replace(/\[(.*)\]\(.*\)/, '$1')
.replace(/`(.*)`/, '$1') // ``
.replace(/\[(.*)\]\(.*\)/, '$1') // []()
.replace(/\*\*(.*)\*\*/, '$1') // **
.replace(/\*(.*)\*/, '$1') // *
.replace(/_(.*)_/, '$1') // _

// put here to avoid circular references
const compose = (...processors) => {
Expand Down

0 comments on commit 3116afe

Please sign in to comment.