← Contents
Text can be colored and set in another font by naming the styles in braces
after it. A CSS color name (red, slategray, rebeccapurple, …) sets
the color; any other name is a font, with hyphens for spaces. A font you
don’t have falls back to the page’s own.
[this is red]{red}, and [this is both]{darkgreen times-new-roman}.
this is red, and this is both.
A topic’s alias, or circle, underline, dotted, wavy or highlight,
marks the text instead (see Asides).
[circled]{circle}, [underlined]{underline}, [dotted]{dotted},
[wavy]{wavy} and [highlighted]{highlight goldenrod}.
circled, underlined, dotted, wavy and highlighted.
For whole paragraphs, lists or tables, fence them with ::::
::: slategray georgia
Everything here is gray and in Georgia,
- lists and tables included,
until the closing line.
:::
Everything here is gray and in Georgia,
until the closing line.
A list item takes styles of its own from braces where it’s declared:
after its bullet, and its box if it has one, before its text. They style
the whole item, its bullet or box included, and its cell in a grid.
A heading takes them the same way, after its #s and any box: ## {navy} Today.
Braces naming anything but colors, backgrounds, the generic fonts
(serif, monospace, …) and uppercase stay as typed:
- ( ) {bg-lemonchiffon} **High energy · Pleasant**: excited, happy
- ( ) {bg-honeydew} **Low energy · Pleasant**: calm, content
- ( ) {gray} Not sure yet
bg- and a CSS color name sets a background, wherever a style can go. On
a few words it’s a highlighter; on a ::: block or a list item it’s a
box round the whole of it, with its corners rounded:
Some [words to find again]{bg-yellow} in a sentence.
::: bg-aliceblue
A whole passage on a pale blue,
- its lists included.
:::
Some words to find again in a sentence.
A whole passage on a pale blue,
::: grid 2 bg-lavender), each cell takes the background.uppercase sets the words in capitals, a little spaced so they don’t crowd, wherever a style can go: a span, a ::: block, a list item or a heading.
The source keeps the words as they’re typed, so they read normally as plain text, and a screen reader reads them as words, not letter by letter.
The outline lists a heading by its words, without its braces.
## {uppercase} Ways to embrace today
- [ ] {uppercase} Walk
- [ ] Call a friend
> [!TIP]
> [Today's prompt]{uppercase}: What would you tell someone to make them pick it up?
::: uppercase slategray
A label for a whole passage
:::
Tip
Today’s prompt: What would you tell someone to make them pick it up?
A label for a whole passage
A ::: block can also lay out what’s in it; see Layout.
->, <- and <-> show as →, ← and ↔. A backslash (\->) keeps them as
typed.
draft -> review -> publish, and \-> as typed
draft → review → publish, and -> as typed
math:[…] sets relations between ideas as symbols, keeping the words
upright. Alone on its line it is centered like an equation; within a sentence
it stays inline:
| You write | Shows |
|---|---|
>= <= != ~= |
≥ ≤ ≠ ≈ |
>> << |
≫ ≪ |
-> <- <-> |
→ ← ↔ |
* +- - |
× ± − |
.: inf |
∴ ∞ |
math:[readability >> cleverness]
In short, math:[well-known code ~= fast code].
readability ≫ cleverness
In short, well-known code ≈ fast code.
A - joining two words (well-known) stays a hyphen.
pitch:[C4] names a note in a small button that plays it, a tone that fades in a couple of seconds.
The note is in scientific pitch: a letter, a # or b if it’s sharp or flat, and its octave, with A4 at 440 Hz and middle C at C4.
Words in brackets after a note show instead of its name.
- Start around pitch:[C4], slide down to pitch:[G3] and back up.
- Range: pitch:[G4] -> pitch:[Bb4], then pitch:C5[the top].
Playing a note changes nothing in the file, so it plays on a slide, in Work, and on a page past its open-until: too.
An exported page only names the note, having nothing to play it with.
Something that isn’t a note (pitch:[H9]) stays as typed, as does one in code.
Emoji shortcodes like :tada: show as 🎉 in the rendered pane but stay as
:tada: in the file. Code spans and unknown names are left as written.
Shipped :tada: but `:tada:` in code stays.
Shipped 🎉 but :tada: in code stays.