Skip to content

no-bare-urls

Markdownstyleno fixdefault: offmarkdown/markdownlint

Reports a URL (http:// or https://) written in a paragraph that is neither a link nor an autolink, on the URL. It is found when it follows whitespace or starts the paragraph; headings are not checked.

Markdown flavours differ in whether a bare URL becomes a link: some leave it as plain text, and one that includes the trailing punctuation breaks the link. Marking it with <...> or a link makes the intent explicit and the same everywhere.

To fix, write <https://example.com> or [text](https://example.com).

Reported
https://example.com is bare.
<https://example.com> and [site](https://example.com) are not.
markdown:
lint:
rules:
no-bare-urls: warn # off (default), warn, error

Enabled by the presets: markdown/markdownlint.

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

The same check in other tools. full: Sudsy reports what the upstream rule reports; partial: only part of it, as the last column says.

Tool Rule Match What differs
markdownlint MD034 partial Reported on the paragraph; a URL right after ( or [ is not found.