From 1c6d29e2aac65ac049e3dab3f7147cd47ea000bf Mon Sep 17 00:00:00 2001 From: Maxim Karpov Date: Thu, 11 Jul 2024 14:46:40 +0300 Subject: [PATCH] feat: escape question mark from anchor --- src/transform/plugins/anchors/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transform/plugins/anchors/index.ts b/src/transform/plugins/anchors/index.ts index 6a1b65fe..83b86f86 100644 --- a/src/transform/plugins/anchors/index.ts +++ b/src/transform/plugins/anchors/index.ts @@ -124,7 +124,7 @@ const index: MarkdownItPluginCb = (md, options) => { } else { id = slugify(title, { lower: true, - remove: /[*+~.()'"!:@`ь]/g, + remove: /[*+~.()'"!:@`ь?]/g, }); ghId = slugger.slug(title); }