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
You might be better off finding the markdown that contains an empty link (e.g. Lorem [ipsum]() dolor.) and fixing that instead. Or are you saying that CommonMark should never add an href attribute that's empty?
What I am saying is that the Heading PermaLink Extension (https://commonmark.thephpleague.com/2.4/extensions/heading-permalinks/) creates an empty link before or after a heading as the destination of each item in the Contents and accessibility tools flag empty links as a serious error (https://webaim.org/techniques/hypertext/hypertext_links). The destination should not be a link at all and removing the href attribute from the destination tag seems to do just that. But is that the best way to do it?
Ah, that makes sense. So you're saying that there are circumstances in which $fragmentPrefix and $slug are both empty strings and the result is just href="#"?
Description
My System - Joomla Accessibility Checker tells me there is a problem with empty links. I fixed it in:
league/commonmark/src/Extension/HeadingPermalink/HeadingPermalinkRenderer.php
by commenting out line 70 so the href attribute does not appear in the anchor. Could that be right?
Example
Did this project help you today? Did it make you happy in any way?
No response
The text was updated successfully, but these errors were encountered: