Chapter 25
Write equations, diagrams, and charts
Pilcrow includes offline rendering for MathJax equations, Mermaid diagrams, and Vega-Lite charts. The active profile still determines where the block begins and ends; the bundled library only draws its contents.
Start from a template#
- Choose Insert ▸ Equations, Diagrams, or Charts.
- Pick a template.
- Replace the sample source.
- Switch to Preview or Side by Side.
- Correct any reported syntax error in the source block.
Use MathJax for mathematical notation, Mermaid for flows and relationships, and Vega-Lite for data-driven charts. Keep a textual explanation near any important visual so the document remains understandable when a renderer is unavailable and accessible to more readers.
The libraries are bundled and run without network access. Settings ▸ Library ▸ Rendering Libraries shows versions and notices. If a block does not render, confirm its language label, delimiters, optional-feature settings, and syntax before changing themes.