From dcfe7e6f3da8b249da4f98c93fee59383928731d Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 25 Sep 2023 22:45:51 +0200 Subject: [PATCH] marks are already replaced in slugify --- server/public/index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/public/index.html b/server/public/index.html index e4448d2..8d4e4f4 100644 --- a/server/public/index.html +++ b/server/public/index.html @@ -48,8 +48,7 @@ ariaHidden: true }), // prepend current file id to the anchor permalink - slugify: s => `${getId() ?? ""}-${encodeURIComponent(String(s).trim().toLowerCase().normalize("NFKD").replace(/\p{M}/g, "").replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, "") - )}` + slugify: s => `${getId() ?? ""}-${encodeURIComponent(String(s).trim().toLowerCase().normalize("NFKD").replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, ""))}` }); md.use(markdownitFootnote);