Skip to content

Tables, math and diagrams

Type /table for an empty table, or write one in Markdown:

| Bed | Crop | Rows |
|---|---|---|
| A | Tomatoes | 3 |
| B | Beans | 2 |

Click in any cell and a toolbar appears above the table:

Button What it does
↑ Row above / ↓ Row below Adds an empty row
− Delete row Removes the row with the cursor
← Column left / → Column right Adds an empty column
− Delete column Removes the column with the cursor
× Delete table Removes the whole table

A table you have not changed is saved exactly as it is in the file. Once you edit a table, mdai writes it with its columns lined up. The table above is stored like this:

| Bed | Crop | Rows |
| --- | -------- | ---- |
| A | Tomatoes | 3 |
| B | Beans | 2 |

The cells are the same; only the spaces around them change, and only in tables you edited. The rest of the note is written exactly as it was.

Put a formula between dollar signs and mdai shows it typeset:

The area is $a = w \times l$ square metres.
$$
E = mc^2
$$
  • $…$ is a formula inside a sentence.
  • $$…$$ is a formula on its own, centred.

To change a formula, double-click it (or click it and press Enter). Its source opens in a small box: edit it and press Enter (⌘Enter / Ctrl+Enter in a $$…$$ formula, where Enter starts a new line) to put it back, or Escape to leave it as it was. Clicking away keeps your edit.

A dollar sign in ordinary text stays text — Seeds cost $5 and $10. is not a formula, and it is saved exactly as you typed it.

The file keeps your formulas exactly as you wrote them, dollar signs included.

A code block marked mermaid is shown as a diagram:

```mermaid
graph TD
Seeds --> Seedlings --> Beds
```

Click the diagram and its source opens above it, ready to edit. Click anywhere else and only the diagram is left.

If the diagram has a mistake, mdai shows its source instead, so you can see and fix it. The file always keeps the block exactly as you wrote it.