Skip to content

labelReferences

Reports missing label references.

✅ This rule is included in the md logical preset.

Markdown allows you to use labels as placeholders for URLs in both links and images using square brackets. If a label is referenced but never defined, Markdown doesn’t render a link and instead renders plain text, which is likely not the intended behavior. Each label reference must have a corresponding definition somewhere in the document.

[Flint][flint]
[flint][]
![Logo][logo]

If you use a framework or other workflow that fills in labels for you, you can disable this rule.

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