diff --git a/src/components/markdown-renderer/markdown-it-plugins/headline-anchors.ts b/src/components/markdown-renderer/markdown-it-plugins/headline-anchors.ts
index ab95a7d1f..0fa9a1a87 100644
--- a/src/components/markdown-renderer/markdown-it-plugins/headline-anchors.ts
+++ b/src/components/markdown-renderer/markdown-it-plugins/headline-anchors.ts
@@ -8,13 +8,12 @@ import MarkdownIt from 'markdown-it'
import anchor from 'markdown-it-anchor'
export const headlineAnchors: MarkdownIt.PluginSimple = (markdownIt) => {
- const options: anchor.AnchorOptions = {
- permalink: true,
- permalinkBefore: true,
- permalinkClass: 'heading-anchor text-dark',
- permalinkSymbol: '',
- permalinkHref: (slug: string): string => `#${slug}`
- }
-
- anchor(markdownIt, options)
+ anchor(markdownIt, {
+ permalink: anchor.permalink.ariaHidden({
+ symbol: '',
+ class: 'heading-anchor text-dark',
+ renderHref: (slug: string): string => `#${slug}`,
+ placement: 'before'
+ })
+ })
}