Fix links to headers with symbols (#147)

This commit is contained in:
blankie 2024-01-07 18:01:48 +00:00 committed by GitHub
parent 05986aca17
commit 166c9614e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,10 +44,10 @@ const markdownEngines = {
},
})
.use(mAnchor, {
slugify,
permalink: mAnchor.permalink.linkInsideHeader({
class: 'header-link',
symbol: '<img src="/images/svg/paragraph.svg">',
renderHref: (input) => '#' + slugify(decodeURIComponent(input)),
ariaHidden: true,
}),
})