Skip to content

MD034 - URLs should be formatted as links

Aliases: no-bare-urls

What this rule does

Ensures URLs are properly formatted with angle brackets or as clickable links, not pasted as plain text.

Why this matters

  • Clickability: Not all Markdown renderers make plain URLs clickable
  • Consistency: Mixed URL formats look unprofessional
  • Control: Proper link formatting lets you customize the display text

Examples

✅ Correct

For more information, see <https://example.com>.

Visit [our website](https://example.com) for details.

Email us at <[email protected]>

Chat with me at <xmpp:[email protected]>

❌ Incorrect

For more information, see https://example.com.

Email us at [email protected]

Chat with me at xmpp:[email protected]

🔧 Fixed

For more information, see <https://example.com>.

Email us at <[email protected]>

Chat with me at <xmpp:[email protected]>

Configuration

This rule has no configuration options.

Automatic fixes

This rule automatically wraps plain URLs, email addresses, and XMPP URIs in angle brackets (< and >).

This rule supports GFM (GitHub Flavored Markdown) extended autolinks, including:

Learn more

  • MD039 - No spaces inside link text
  • MD042 - No empty links
  • MD051 - Link anchors should exist