Diagrams
Three kinds of diagrams work in notes. Each one follows the light or dark color scheme.
D2
Rendered to SVG on the server when the site is built, so the page ships no JavaScript for it.
Mermaid
Rendered in the browser. mermaid.js is only loaded on pages like this one.
sequenceDiagram participant A as Author participant O as Obsidian participant S as Site A->>O: write a note O->>S: git push, just deploy S-->>A: published page
Excalidraw
Drawn in Obsidian with the Excalidraw plugin. Turn on "Auto-export SVG" in the plugin settings so that each save also writes the SVG the site shows.