marks are already replaced in slugify

This commit is contained in:
Ell 2023-09-25 22:45:51 +02:00
parent fb6094a1b8
commit dcfe7e6f3d

View file

@ -48,8 +48,7 @@
ariaHidden: true ariaHidden: true
}), }),
// prepend current file id to the anchor permalink // 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); md.use(markdownitFootnote);