mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-11-25 20:42:40 +00:00
Fix links to headers with symbols (#147)
This commit is contained in:
@@ -44,10 +44,10 @@ const markdownEngines = {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
.use(mAnchor, {
|
.use(mAnchor, {
|
||||||
|
slugify,
|
||||||
permalink: mAnchor.permalink.linkInsideHeader({
|
permalink: mAnchor.permalink.linkInsideHeader({
|
||||||
class: 'header-link',
|
class: 'header-link',
|
||||||
symbol: '<img src="/images/svg/paragraph.svg">',
|
symbol: '<img src="/images/svg/paragraph.svg">',
|
||||||
renderHref: (input) => '#' + slugify(decodeURIComponent(input)),
|
|
||||||
ariaHidden: true,
|
ariaHidden: true,
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user