MD042 - No empty links
May 24, 2026 ยท View on GitHub
Tags: links
Aliases: no-empty-links
This rule is triggered when an empty link is encountered:
[an empty link]()
To fix the violation, provide a destination for the link:
[a valid link](https://example.com/)
Empty fragments will trigger this rule:
[an empty fragment](#)
[an empty link definition][empty]
[empty]: #
But non-empty fragments will not:
[a valid fragment](#fragment)
Empty link definitions
Rationale: Empty links do not lead anywhere and therefore don't function as links.