Code and math
Code and math are block types, so they sit in the flow of the note rather than inside a paragraph. A code block carries a language picker and highlighting that follows your theme; a math block is LaTeX rendered as you type. Both keep their source in the note and survive export.
At a glance
- Code block
- Source plus a language picker
- Math block
- LaTeX, rendered as you type
- Highlighting
- Follows the light or dark theme
- On export
- Fenced code, raw LaTeX
Add code
Add the block
CodeTap + in the editor's bottom bar and choose Code. The block arrives with a language button already set.
Pick the language
LanguageThe button in the block's corner names the language in use — js out of the box. Tap it to change languages; Timeline ships highlighting for around fifty, from C and Python to Rust, Kotlin, Go and SQL.
Type the code
TextType into the field and the colours follow. Nothing runs — this is a note, not a console.

Highlighting adapts to the theme — a light scheme in the light theme and a dark one in the dark theme — and updates as you type.
Add math
Add the block
MathTap + and choose Math. The block is labelled LaTeXand starts with a sample equation so you can see it render.
Write the LaTeX
LaTeXWrite LaTeX in the field and Timeline renders it as you go. Every block is one equation.
Edit or remove
PencilThe pencil switches between the rendered equation and its source; the bin removes the block. The same two buttons sit on a code block.

In the export
| Block | Written out as |
|---|---|
| Code | A fenced Markdown block |
| Math | The LaTeX itself |
Both are text, so neither loses anything on the way through export.