Mermaid diagrams and KaTeX math, rendered as you type
Put the diagram or the equation in a fenced block and watch it appear in the preview.
Mark renders Mermaid diagrams and KaTeX math live in the preview pane, offline, in any of its themes, and carries them into exports.
Diagrams
Write a mermaid code block and the preview draws it: flowcharts, sequence diagrams, state diagrams and the other Mermaid types. The diagram follows the theme you choose, light or dark.
```mermaid
flowchart LR
Write --> Preview --> Export
```
Math
Inline math between single dollar signs and display math between double dollar signs are typeset with KaTeX, so equations look like equations, not source.
$$ E = mc^2 $$
Keep them when you share
Exported HTML carries the rendered diagrams and math, with fonts and styles inlined, so the file works anywhere. See export to HTML, email and PDF.
Also in the box
- Live split preview and GitHub-flavored Markdown.
- Wiki-links and a link diagram of a whole folder of notes.
- Works offline. Nothing is uploaded to render your diagrams.
Get Mark
Mark is $4.99, one time. No subscription, no account, no ads.