Markdown links
Write a Markdown link as the link text in square brackets followed by the URL in parentheses: [link text](https://example.com). An optional title in quotes after the URL becomes a tooltip in most browsers. This is CommonMark syntax, so it works in every Markdown app.
Read the [CommonMark spec](https://spec.commonmark.org/ "CommonMark").
There must be no space between ] and (. [text] (url) renders as plain text in CommonMark.
How do reference-style links work?
Put a label in a second pair of brackets and define the URL for that label elsewhere in the document. This keeps long URLs out of your sentences and lets several links share one URL.
Read the [spec][cm] and the [GFM extensions][gfm].
[cm]: https://spec.commonmark.org/
[gfm]: https://github.github.com/gfm/ "GitHub Flavored Markdown"
- Labels are not case sensitive:
[CM]matches[cm]. - Definitions can go anywhere in the file, usually at the end, and they do not appear in the rendered page.
- When the link text and the label are the same, you can write
[cm][]or just[cm]. - If two definitions use the same label, the first one wins.
How do you make a plain URL clickable?
In CommonMark, wrap it in angle brackets: <https://example.com>. The same works for email addresses: <team@example.com>. These are called autolinks.
GitHub Flavored Markdown (GFM) goes further. Its extended autolinks turn URLs starting with https://, http:// or www. and plain email addresses into links without any brackets, and they leave out a period or other punctuation at the end of a sentence. Use angle brackets if the file may be read by a tool that follows CommonMark only.
How do you link to a heading or another file?
To link to a heading in the same document, use # and the heading's anchor: [Install](#install). Anchors are created by the app that renders the file, not by the spec. GitHub lowercases the heading, turns spaces into hyphens and removes other punctuation, as the headings page explains.
To link to another file, use a path relative to the current file:
[Setup guide](docs/setup.md)
[Install section](docs/setup.md#install)
[Back to the index](../README.md)
Relative links keep working when the whole folder is moved, synced or cloned. GitHub also rewrites relative links to point at the branch you are viewing (GitHub Docs, checked November 2026).
What if the URL contains spaces or parentheses?
A space ends the URL, so either encode it as %20 or wrap the whole destination in angle brackets:
[Quarterly report](<reports/Q3 summary.md>)
[Quarterly report](reports/Q3%20summary.md)
CommonMark allows balanced parentheses inside a URL, as in [details](https://example.com/page_(info)). An unmatched parenthesis needs a backslash, \), or the code %29.
Can a Markdown link open in a new tab?
There is no Markdown syntax for it. The app or website that renders the page decides how links open. Where raw HTML is allowed, <a href="https://example.com" target="_blank">text</a> works, but many hosted sites remove or ignore the target attribute.
Links in Noteline
Noteline shows a link as its text in link color and reveals the full [text](url) when the cursor is inside it. Cmd+K on a Mac (Ctrl+K on Windows and Linux) inserts a link, and Cmd+click (Ctrl+click) opens it; on a phone or tablet, tap the link. Noteline opens web, mailto: and tel: links and ignores other link types, a safeguard for Markdown files that come from someone else.
Common questions
How do I make an image a link?
Put the image syntax inside the link text: [](https://example.com). The images page covers the image part.
Why does my link show the brackets?
Look for a space between ] and (, a missing closing bracket or parenthesis, or a space inside the URL. Each of these stops CommonMark from reading the text as a link.
Do reference definitions show up in the rendered page?
No. Lines like [cm]: https://spec.commonmark.org/ are removed from the output and only supply the URL.