MD034 - no-bare-urls¶
Description¶
This rule is triggered when a URL or email address appears in the document without being enclosed in angle brackets, link syntax, or code spans. URLs using http, https, and ftp protocols are checked.
Rationale¶
Without angle brackets, a bare URL or email address is not converted into a clickable link by some Markdown parsers. Wrapping URLs in angle brackets (
Examples¶
Invalid¶
# Document with Bare URLs
Visit https://www.example.com/ for more information.
Contact us at user@example.com for support.
Valid¶
# Document with Proper URLs
Visit <https://www.example.com/> for more information.
Contact us at <user@example.com> for support.
You can also use [example](https://www.example.com/) link syntax.
Not a clickable link: `https://www.example.com`
Reference: [https://example.com]
[example.com]: https://example.com