Skip to content

Commit

Permalink
feat: escape question mark from anchor
Browse files Browse the repository at this point in the history
  • Loading branch information
makamekm committed Jul 11, 2024
1 parent d0a7c66 commit 1c6d29e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transform/plugins/anchors/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const index: MarkdownItPluginCb<Options> = (md, options) => {
} else {
id = slugify(title, {
lower: true,
remove: /[*+~.()'"!:@`ь]/g,
remove: /[*+~.()'"!:@`ь?]/g,
});
ghId = slugger.slug(title);
}
Expand Down

0 comments on commit 1c6d29e

Please sign in to comment.