You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 to true) 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:
This discussion was converted from issue #36 on March 15, 2024 11:16.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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:
Beta Was this translation helpful? Give feedback.
All reactions