Skip to content

no-empty-links

Markdowncorrectnessno fixdefault: warnmarkdown/markdownlint

Reports a link whose destination is empty or only # ([docs](), [docs](#)).

A link with no target does nothing or reloads the page, and it usually marks a link that was never filled in or lost its URL while editing.

To fix, add the destination, or write plain text.

Reported
A [docs]() and [anchor](#) and [ok](#top) link.
markdown:
lint:
rules:
no-empty-links: warn # off, warn (default), error

Enabled by the presets: markdown/markdownlint.

Suppress one line with sudsy-disable-next-line no-empty-links in a comment of the file’s language.

The same check in other tools; Sudsy reports what each upstream rule reports.

Tool Rule Match
markdownlint MD042 full