Editora 0.20.0 docs. You are reading an archived version, kept so links from that release keep working. Read the 0.21.0 docs →

Diagrams as code

Standalone Graphviz DOT (.dot / .gv) and PlantUML (.puml / .plantuml) files get the same 3-mode preview (Editor / Split / Preview) as Markdown and Mermaid.

Rendering runs off-thread via the external dot and plantuml CLIs. Both rasterize to PNG natively, so there’s no headless browser, and results are cached by source hash so an unchanged diagram isn’t re-rendered. Zoom resizes the image.

PlantUML runs with PLANTUML_SECURITY_PROFILE=SANDBOX, so a diagram cannot !include local files or URLs. Export that variable yourself before starting Editora to choose another profile. The renderers also start without secret-looking environment variables.

Export

Export a diagram to SVG, PNG, or PDF with diagram.export (also on the preview’s right-click menu). File: Print Rendered Preview… (preview.print) prints it with a print preview. The PDF is sized by Graphviz or PlantUML, so the PDF page settings do not apply to it, and printed diagrams are always light.

Enabling

It’s on by default, self-gating on detection, so it stays inert until the tool is found. Install with your package manager, for example brew install graphviz plantuml. The toggles and tool paths live under Settings → Diagrams.

For diagrams embedded in Markdown, see Mermaid.