This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Enhancement: option to place the anchor link outside the heading element #36
Labels
You can continue the conversation there. Go to discussion →
As explained in this article, having the anchor link within the heading element can cause accessibility issues, as the text content of the heading becomes something like "Heading example Direct link to heading example".
It would be great to have a config option like
anchorLinkInHeading
(boolean, defaults totrue
) to control this.This could also work with the existing
anchorLinkPosition
option, to render it before or after the heading element.For reference, this is the recommended markup from Amber (author of the article) for best accessibility:
The text was updated successfully, but these errors were encountered: