Skip to content

definitionContents

Reports definitions with empty URLs or only empty fragments.

✅ This rule is included in the md logical preset.

Definitions in Markdown provide URLs for reference-style links and images. A definition with an empty URL or only an empty fragment (#) provides no useful destination and will result in broken links. Empty definitions are often created as placeholders but forgotten to be filled in.

[earth]: <>
[moon]: #
[mars]:

If you intentionally use empty definition URLs as placeholders and have a framework or other workflow that always fills them in later, you might want to disable this rule.

Made with ❤️‍🔥 in Boston by Josh Goldberg and contributors.