no-bare-urls
What it does
Section titled “What it does”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.
Why it matters
Section titled “Why it matters”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).
Example
Section titled “Example”https://example.com is bare.
<https://example.com> and [site](https://example.com) are not.Configuration
Section titled “Configuration”markdown: lint: rules: no-bare-urls: warn # off (default), warn, errorEnabled by the presets: markdown/markdownlint.
Suppress one line with sudsy-disable-next-line no-bare-urls in a comment of the file’s language.
Upstream equivalents
Section titled “Upstream equivalents”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. |