From 166c9614e471e48a29960d73fecf85a8cc77ddae Mon Sep 17 00:00:00 2001 From: blankie Date: Sun, 7 Jan 2024 18:01:48 +0000 Subject: [PATCH] Fix links to headers with symbols (#147) --- build/engines.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/engines.js b/build/engines.js index 5ccd77c..bd316d7 100644 --- a/build/engines.js +++ b/build/engines.js @@ -44,10 +44,10 @@ const markdownEngines = { }, }) .use(mAnchor, { + slugify, permalink: mAnchor.permalink.linkInsideHeader({ class: 'header-link', symbol: '', - renderHref: (input) => '#' + slugify(decodeURIComponent(input)), ariaHidden: true, }), })