Skip to content

no-space-in-links

Markdownstyleno fixdefault: offmarkdown/markdownlint

Reports link text that starts or ends with a space ([ docs ](url)).

The spaces become part of the link, so the underlined, clickable text has blanks at its ends and the link looks off.

To fix, move the spaces out of the brackets.

Reported
A [ docs](https://example.com) and [docs ](https://example.com) and [docs](https://example.com).
markdown:
lint:
rules:
no-space-in-links: warn # off (default), warn, error

Enabled by the presets: markdown/markdownlint.

Suppress one line with sudsy-disable-next-line no-space-in-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 MD039 full