Skip to content

Commit

Permalink
feat: escape question mark from anchor (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
makamekm committed Aug 12, 2024
1 parent 3e8ac74 commit af1478e
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 af1478e

Please sign in to comment.