Links
A link is words with an address, edited through a field rather than its Markdown.
A link, and addresses linked by themselves
Put the caret in the link and press ⌘K to change its address. Select words and paste an address to link them.
What it stores
Try it
Section titled “Try it”Select words and press ⌘K, or Link on the toolbar. A field for the address opens at the top of the editor: Apply writes the link, and Cancel or Escape leaves the words as they were. With the caret in a link, ⌘K opens the same field with its address in it, to change it. Clear the address and press Apply or Enter to remove the link while keeping its words and formatting.
Select words within one block and paste an address starting https:// or http:// over them, and the words become a link to it. ⌘⇧V pastes the address as plain text instead; selecting a link’s whole label also removes its old address.
The Markdown
Section titled “The Markdown”| What you see | How you write it | What it stores |
|---|---|---|
| A link | ⌘K, Link on the toolbar, or an address pasted over words | [words](https://example.com) |
| An address | Type or paste it | https://example.com or www.example.com, as written |
An address in the text is a link as it stands: one starting https://, http:// or www. is drawn as a link and kept exactly as it was written. A www. address opens as https://. Addresses in code stay as they are.
A link whose words are its own address reads short: https://www.example.com/news/ shows as example.com/news, and a long one is cut at a word, fading out. Only the drawing changes. Put the caret in the link and the whole address comes back to edit; rest the pointer on it to read it, and the document keeps every letter.
Aa reads every link CommonMark writes: a title after the address in ", ' or (), an address in <angle brackets>, and a pair of parentheses in an address. A title shows when the pointer rests on the link, and it is kept. An empty one, as Trello writes, is read as none.
A link’s words can be formatted like any others. An address written through the field or pasted over words has no spaces, and its parentheses are stored as %28 and %29, so the Markdown reads back as one link.
Opening a link
Section titled “Opening a link”A link in a read-only editor
Press the link: it opens in a new tab.
What it stores
While the text can be changed, a press on a link puts the caret in it, as on any words. ⌘-press, or Ctrl-press, opens it in a new tab. In a read-only editor a press opens it in a new tab.
Links are underlined in the text’s colour; --aa-link gives them a colour of their own. See Styling. A link given a text colour wears that colour, underline and all, whatever --aa-link says, and it stays a link when only part of it is coloured.
| Keys | What they do |
|---|---|
| ⌘K | Opens the address field for the selected words, or for the link the caret is in |
| ⌘V over selected words | Pasting an address makes the words a link |
| ⌘⇧V | Pastes as plain text |
| Escape in the field | Closes it without changing anything |