Skip to content

Commit

Permalink
#106 removed mangle and headerIds
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikgeissler committed Oct 1, 2023
1 parent f617c3f commit 7f8d6aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
"js-yaml": "^4.1.0",
"mapbox-gl": "^2.15.0",
"marked": "^5.0.5",
"marked-gfm-heading-id": "^3.1.0",
"marked-mangle": "^1.1.4",
"prettier": "^2.8.8",
"prettier-plugin-svelte": "^2.10.1",
"svelte": "^3",
Expand Down
5 changes: 5 additions & 0 deletions src/utils/marked.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ const renderer = {
}
return false // delegate to default marked codespan renderer
},

// Mangle and headerIds are deprecated since > 5.0.0
// https://github.com/markedjs/marked/discussions/2825
headerIds: false,
mangle: false
}

marked.use({ renderer })
Expand Down

0 comments on commit 7f8d6aa

Please sign in to comment.