Skip to content

Commit

Permalink
Bugfix: Headers with links were not transformed properly for the anch…
Browse files Browse the repository at this point in the history
…or elements
  • Loading branch information
c3er committed Aug 22, 2018
1 parent 7251537 commit 445581f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const markdown = require("markdown-it")({
markdown.use(require("markdown-it-headinganchor"), {
slugify: text =>
text
.replace(/(\[.*\]|<.*>|\(.*\)|\.|`)/g, "")
.replace(/\[|\]|<.*>|\(.*\)|\.|`/g, "")
.trim()
.replace(/\s/g, "-")
.toLowerCase()
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mdview",
"version": "1.0.0",
"version": "1.0.1",
"description": "Standalone Markdown viewer",
"keywords": [
"markdown",
Expand Down

0 comments on commit 445581f

Please sign in to comment.