Markdown Guide
Notes and the descriptions of links in Anybox understand Markdown, a way to format text with a few symbols. Put two asterisks around a word to make it bold, start a line with a dash to make a list, or add a pair of brackets to make a task.
Anybox styles the text as you type, and keeps each symbol where you typed it, in a lighter color. Your notes stay plain text, so they still read well when you copy them or open them elsewhere. Everything stays at the same size, so even a heading is bold rather than larger.
Markdown is styled where you write, on the Mac, iPhone and iPad: in the editor of a note and in the description of a link. Everywhere else, such as in lists and cards, the text appears as you wrote it, with its symbols. Comments, titles, URLs and text files are plain text.
Styles
| You type | Anybox shows |
|---|---|
**Bold** or __Bold__ | **Bold** |
*Italic* or _Italic_ | *Italic* |
***Bold and italic*** | ***Bold and italic*** |
~~Strikethrough~~ or ~Strikethrough~ | ~~ |
::Highlight:: | ::Highlight:: |
`Code` | `Code` |
Highlights aren't part of standard Markdown, so other apps may show their colons as they are. A highlight ends with its line.
Nothing inside code is styled, and its quotes and dashes stay as you type them, which makes it a good place for a command or a license key.
Headings
Start a line with one to six number signs and a space. A heading is bold, at the size of the rest of the text, so it organizes a note without taking it over.
| You type | Anybox shows |
|---|---|
# Reading List | # Reading List |
### This Week | ### This Week |
Number signs at the end of a heading, as in ## This Week ##, are optional.
Lists
Start each line of a bulleted list with a dash, an asterisk, a plus sign or a bullet (•) and a space. Start each line of a numbered list with a number, a period or a parenthesis, and a space.
| You type | Anybox shows |
|---|---|
- Swift
- SwiftUI | - Swift - SwiftUI |
1. Read the article
2. Try the sample code | 1. Read the article 2. Try the sample code |
Press Return at the end of an item to start the next one: numbers count up, and new tasks start unchecked. Press Return on an empty item to end the list. On the Mac, Option-Return starts a new line without continuing the list.
To nest items under the one above them, indent them.
Task Lists
Put brackets with a space between them after the dash to turn the items of a list into tasks. An x between the brackets marks a task that's done, and a tilde one that's canceled.
| You type | Anybox shows |
|---|---|
- [ ] Read the article | - [ ] Read the article |
- [x] Save the link | - [x] Save the link |
- [~] Watch the video | - [~] |
A task that's done is in a lighter color, and a canceled one is struck through as well. The space between the brackets of an open task matters: - [] isn't a task.
You don't need to type the brackets or the marks. Task List makes tasks of the selected lines, and Mark Task as Completed and Mark Task as Canceled set the marks of the selected tasks, or clear them where they're all set already. Both are covered under Formatting Without Symbols and Keyboard Shortcuts below.
Tasks work in numbered lists too, as in 1. [ ] Call back, and in quotes.
Quotes
Start a line with a greater-than sign to quote it. Quotes appear in a lighter color, and two signs put one quote inside another.
| You type | Anybox shows |
|---|---|
> Simple things should be simple. | > Simple things should be simple. |
Links
Put the text of a link in square brackets and its address right after it in parentheses. The address is in the color of links.
| You type | Anybox shows |
|---|---|
[Anybox](https://anybox.app) | [Anybox](https://anybox.app) |
https://anybox.app or name@example.com | https://anybox.app, name@example.com |
Web and email addresses are in the color of links by themselves, including those that start with www.. Anybox also understands these ways to write a link:
- An address without
https://, as in[Docs](example.com) - An address between angle brackets, as in
<https://anybox.app> - A title after the address, as in
[Docs](https://example.com "Swift Documentation") - A reference to an address on a line of its own, as in
[Docs][1]with[1]: https://example.com
Images aren't shown. An image, as in , stays as text, with its address in the color of links.
Code Blocks
To keep several lines exactly as they are, put three backticks or three tildes on the line before them and on the line after them. A language name can follow the opening backticks. Lines indented by four spaces are code too.
```
git fetch origin
git rebase origin/main
```
Anybox shows a code block in a monospaced font and fills the whole block with the background of code, without colors for the syntax. Lines indented by four spaces are only in the monospaced font.
Showing a Symbol
To show a symbol without it styling your text, put a backslash before it, as in \*not italic\*.
A line of three dashes, asterisks or underscores, such as ---, stays in your text as it is and isn't drawn as a line.
Formatting Without Symbols
You don't need to remember the symbols:
- On iPhone and iPad, the bar above the keyboard has buttons for headings, bold, italic, strikethrough, highlights, lists, task lists, quotes, code and links. Select some text to find Format in the menu above it, with bold, italic, strikethrough, highlight, code and link.
- On the Mac, choose Edit › Markdown in the menu bar, or Control-click the text to find the same Markdown menu, with every format and its keyboard shortcut.
A button or a menu item adds its symbols around the selected text, or at the start of the selected lines, and removes them where they're already there.
Keyboard Shortcuts
On the Mac, and on iPad or iPhone with a keyboard:
| Format | Shortcut |
|---|---|
| Bold | ⌘B |
| Italic | ⌘I |
| Strikethrough | ⌥⌘U |
| Highlight | ⇧⌘U |
| Code | ⇧⌘J |
| Code block | ⌥⇧⌘J |
| Link | ⇧⌘K |
| Quote | ⌘' |
| Heading 1 to 6 | ⌃⌘1 to ⌃⌘6 |
| Bulleted list | ⇧⌘L |
| Numbered list | ⌥⌘L |
| Task list | ⌃⌘L |
| Increase indent | ⌘] |
| Decrease indent | ⌘[ |
| Mark task as completed | ⌘K |
| Mark task as canceled | ⌥⌘K |
Marking tasks that are all completed or canceled already opens them again.
Not Supported
Anybox keeps to the Markdown that suits notes. These stay as plain text:
- Tables and HTML
- Footnotes and math
- Images and horizontal lines, which aren't drawn
- Colors for the syntax of code
- Headings underlined with
===or--- - Subscripts: a tilde on each side of a word strikes it through instead