Articles
Published · November 25, 2026

Markdown Autolinks Without Angle Brackets: What Renders

Core CommonMark links a URL only inside angle brackets. GitHub Flavored Markdown also links bare URLs, www addresses and emails. Here is exactly what renders where.

Also in: Español中文हिन्दी

Quick answer

In core CommonMark, a URL becomes a link on its own only when you wrap it in angle brackets. A bare URL renders as plain text. GitHub Flavored Markdown (GFM) adds an autolink extension that also links bare http://, https://, www. and email addresses, under tighter rules. If your document has to render the same everywhere, use the brackets.

What angle brackets do in CommonMark

The CommonMark spec defines an autolink as an absolute URI or an email address inside < and >. It renders as a link whose label is the address itself.

<https://example.com/docs?page=2&sort=new>
<irc://foo.bar:2233/baz>
<foo@bar.example.com>

The first two become links to themselves. The third becomes a mailto: link.

The scheme rule is loose

An absolute URI is a scheme, a colon, then any characters except ASCII control characters, spaces, < and >. A scheme is 2 to 32 characters: it starts with an ASCII letter, then allows letters, digits, +, . and -. The spec says plainly that many strings it accepts are not valid URIs, because the scheme is not registered. So these all link:

<made-up-scheme://foo,bar>
<localhost:5001/foo>
<MAILTO:FOO@BAR.BAZ>

What breaks an autolink

Three things stop the brackets from working:

  • A space inside. <https://foo.bar/baz bim> renders as literal text.
  • Padding. < http://foo.bar > is not an autolink either.
  • No scheme. <foo.bar.baz> and <m:abc> fail: the first has no scheme, the second a scheme of one character.

Backslash escapes also do nothing inside an autolink. A backslash in <https://example.com/\[\> stays in the URL and gets percent-encoded.

What a bare URL does in core CommonMark

Nothing happens. The spec lists these as non-examples:

http://example.com

foo@bar.example.com

Each renders as a plain paragraph with no link. If you have ever pasted a URL into a preview and watched it stay grey, this is usually why: the renderer follows core CommonMark without the GFM extension.

What GFM adds without angle brackets

The GFM spec enables an autolink extension so links are recognised in more places. GitHub says its own comments work this way too: GitHub automatically creates links when valid URLs are written in a comment.

Where a bare link can start

A bare autolink can only come at the start of a line, after whitespace, or after one of *, _, ~ and (. That is why (https://example.com) links but abc"https://example.com does not.

www, http and https

  • www.commonmark.org links once www. is followed by a valid domain. GFM inserts http:// for you.
  • http:// and https:// followed by a valid domain link as written.
  • A valid domain has at least one period, and no underscores in the last two segments.

Email and protocols

A bare foo@bar.baz becomes a mailto: link. A + is allowed before the @ but not after it, so hello+xyz@mail.example links and hello@mail+xyz.example does not. An address ending in - or _ is not linked. GFM also recognises the mailto: and xmpp: protocols.

Where the link ends

GFM trims what is probably sentence punctuation:

  • Trailing ?, !, ., ,, :, *, _ and ~ are left out of the link.
  • If the link ends in ), GFM counts parentheses and drops unmatched closing ones, so a URL in brackets links without the last one.
  • A trailing ; that looks like an entity reference, such as &hl;, is dropped.
  • An opening angle bracket ends the link immediately.

If you work with GitHub references too, issues, pull requests, and people have their own shorthand on top of this.

Three examples worth testing

The easiest way to learn the edges is to feed a renderer a few lines and read the result. These come straight from the cases the specs spell out.

Visit www.commonmark.org/help for more information.

(Visit https://encrypted.google.com/search?q=Markup+(business))

www.google.com/search?q=commonmark&hl;

Under GFM, the first line links to www.commonmark.org/help and leaves the final period outside the link. The second links the full address, including its own balanced parentheses, and leaves the closing bracket of the sentence outside. In the third, the trailing &hl; looks like an entity reference, so the link stops before it. In core CommonMark, none of the three lines produces a link.

A practical rule for mixed audiences

When the same note is read in a GitHub README, a static site generator and a plain preview pane, the preview pane is the one that decides. Wrap addresses in angle brackets, and the note links in all three. Use bare URLs only where you know the renderer is GFM, such as a GitHub comment.

Why the two specs disagree

CommonMark aims to define one unambiguous parse for the core syntax, so it only treats a URL as a link where the author has marked its edges. A bare address has no edges. Is the final period part of the address or part of the sentence? Is the closing parenthesis the URL's own or the writer's? Guessing is a judgment call, and the core spec leaves that call out. GFM makes the call anyway, with explicit rules for trailing punctuation and parentheses, because people paste addresses into comments and expect them to work. The cost is that your note now depends on a renderer that implements the extension. Neither choice is wrong. They suit different jobs. Knowing which one your renderer follows tells you whether a bare address will link.

Which form to write

| You want | Write | |---|---| | The same result in every renderer | <https://example.com> | | A link in GitHub comments and READMEs | A bare https://example.com works | | Readable link text | [text](https://example.com) |

Angle brackets are the safe default for a bare address, since they are the only form core CommonMark links. Prefer [text](url) when the label should say something. Check which renderer your notes will meet before you rely on the bare form. Keep your list syntax just as deliberate: how bullet markers affect Markdown lists is another place renderers differ.

How Carets fits in

Autolink behaviour depends on the renderer, so the useful habit is to write plain text that survives any of them. Carets keeps your notes as Markdown and plain text files, organized into files, projects, and tags, so a note written with <https://example.com> stays portable when you move it to another tool. It is a native editor for iPhone, iPad, and Mac, and its syntax highlighting makes the brackets and link syntax easy to spot while you write.

Get Carets on the App Store for iPhone, iPad, and Mac.

Frequently Asked Questions

Does a bare URL become a link in Markdown?

In core CommonMark, no: http://example.com renders as plain text. Under GFM's autolink extension, yes, for http://, https:// and www. addresses.

Do I need angle brackets for an email address?

In core CommonMark, yes. <foo@bar.example.com> becomes a mailto: link and the bare form does not. GFM links bare email addresses too.

Why does my link stop before a closing parenthesis?

GFM drops unmatched trailing closing parentheses and trailing punctuation from a bare link, so a URL written inside parentheses links without the final bracket.