Revert "Provide accessible markdown-it-anchor configuration"

This reverts commit f8d81e377c.
pull/2104/head
Alija Sabic 2 years ago committed by Evan You
parent a100f88993
commit 9a315d8855

@ -99,11 +99,7 @@ export const createMarkdownRenderer = async (
// mdit-vue plugins // mdit-vue plugins
md.use(anchorPlugin, { md.use(anchorPlugin, {
slugify, slugify,
permalink: anchorPlugin.permalink.linkAfterHeader({ permalink: anchorPlugin.permalink.ariaHidden({}),
style: 'aria-label',
assistiveText: (title) => `Permalink to "${title}"`,
wrapper: ['<div class="header-wrapper">', '</div>']
}),
...options.anchor ...options.anchor
} as anchorPlugin.AnchorOptions).use(frontmatterPlugin, { } as anchorPlugin.AnchorOptions).use(frontmatterPlugin, {
...options.frontmatter ...options.frontmatter

Loading…
Cancel
Save