Diagrams, drawings and math

Draw flowcharts with Mermaid, build diagrams in draw.io, sketch with Excalidraw and write equations in LaTeX, all inside a note.

Four tools cover pictures made with code, with a mouse and with symbols. All are in the slash menu and the toolbar's insert menu, and all are on every plan.

Mermaid diagrams

Mermaid diagram turns a few lines of text into a flowchart or another chart. This is good when you want a diagram that is easy to edit later.

  1. Type / and choose Mermaid diagram.

  2. In the source box, write something like flowchart LR on one line, then A --> B on the next.

  3. The diagram is drawn next to the source. Choose Done when you are happy with it.

To change it later, open the diagram and choose Edit diagram, or remove it with Delete diagram. If the source has a mistake you see a message explaining that the diagram could not be drawn. Diagrams over 20,000 characters, or ones that take too long to draw, are refused with a message.

draw.io diagrams

draw.io diagram opens the diagrams.net editor in a window for drawing with shapes and connectors.

  1. Type / and choose draw.io diagram.

  2. Draw your diagram and save it. The note shows a picture of it.

  3. Choose Edit diagram on the diagram to change it later.

Drawings with Excalidraw

Drawing opens a whiteboard for hand-drawn style sketches. Draw, save, and the note shows the sketch. Click a drawing to align it (Align left, Center or Align right), drag a corner to resize it, open it again with Edit drawing (or double-click it) or delete it with Remove drawing. If you close the drawing window with unsaved changes you are asked whether to discard them.

A Mermaid diagram written as text, and a hand-drawn sketch.

Equations

Equation (or Insert equation in the toolbar) opens an editor for formulas written in LaTeX, rendered with KaTeX. Write LaTeX in the box and a preview appears as you type. Choose whether the equation is Inline, inside a sentence, or Display, on its own line, and pick its Size percentage. Press Cmd+Enter (or Ctrl+Enter) to insert or update it. Click any equation in your note to edit or remove it later.

Typing $$ and a space at the start of a line opens the equation editor directly. Typing $$x^2$$ and a space inserts that equation straight away.

Write LaTeX and see the result straight away.

Next steps

For fully interactive content, see HTML and React blocks.

Related pages