Aa 0.14.1

Formatting

Words are formatted as you write them, and stored as Markdown.

Words formatted as you write

Select words for the toolbar, or press ⌘B, ⌘I, ⌘U, ⌘E or ⌘⇧S.

What it stores

Select words and the toolbar stands over them: Text colour, Bold, Italic, Underline, Strikethrough, then Link, Code and Equation. Each cell’s tooltip names its shortcut. The same keys work without the toolbar.

Markdown typed in place

Type **two words** at the end of the line: the stars go once the second pair closes them.

What it stores

Markdown typed in the text turns into formatting too. While a mark is open, its stars or tildes are written as they are; once it is closed they are hidden, and the words are drawn bold, italic or struck. The syntax stays in the Markdown and is never shown, the caret in the words or not.

What you seeHow you write itWhat it stores
Bold⌘B, or type it**words** (__words__ reads as bold too)
Italic⌘I, or type it*words* (_words_ reads as italic too)
Underline⌘U<u>words</u>
Strikethrough⌘⇧S or ⌘⇧X, or type it~~words~~
Code⌘E, or type it`words`
HighlightType it==words==
A colourText colour on the toolbar<span color="red">words</span>

Markdown has no underline and no colour, so Aa writes those two as HTML, the way GitHub and Notion read them. Marks nest: ***both*** is bold and italic. An underscore inside a word is a letter, so snake_case stays as written.

KeysWhat they do
⌘BBold
⌘IItalic
⌘UUnderline
⌘⇧S or ⌘⇧XStrikethrough
⌘ECode
⌘KLink, see Links

Ctrl stands for ⌘ on Windows and Linux. A mark’s key puts the mark round the selected words, and takes it off again when they already have it. With nothing selected, it writes the mark’s two halves with the caret between them, so the next words are written in it. Words selected across several blocks are marked in each block on its own. Every shortcut is on Keyboard.

Text colours

Select words and press Text colour, the first cell on the toolbar. Default takes the colour off.

What it stores

Text colour, the first cell on the toolbar, opens the colours: Default, Grey, Red, Orange, Green, Blue and Purple. Default takes the colour off. A colour chosen for words that already have one replaces it rather than nesting another inside it.

ColourWhat it stores
Grey<span color="gray">
Red<span color="red">
Orange<span color="orange">
Green<span color="green">
Blue<span color="blue">
Purple<span color="purple">

Each colour is a dark ink from Design system 1’s palette on light paper and a light one on dark. --aa-color-red and its siblings change one; see Styling.

editor.format('bold')   // italic, strike, underline, code, link, equation, highlighteditor.color('blue')    // or null for the text's own colour

Both act on the selection, as the keys do. TEXT_COLORS lists the colours by the names they are stored with. See Methods and events.