Diagrams in fenced code blocks

A fenced code block written in one of 27 supported diagram languages is rendered as an SVG image by Capable's hosted diagram service. Supported: blockdiag, bpmn, bytefield, seqdiag, actdiag, nwdiag, packetdiag, rackdiag, c4plantuml, d2, dbml, ditaa, erd, excalidraw, graphviz, mermaid, nomnoml, pikchr, plantuml, structurizr, svgbob, umlet, tikz, vega, vegalite, wavedrom, wireviz. Mermaid C4 syntax is silently rewritten to c4plantuml.


#Worth knowing

Requires a signed-in session; without a token the block stays as plain code with no error. The diagram source travels to Capable's service inside the image URL.


#Where to find it

Anywhere in a Markdown document


#Where you do it

Top of the Capable Markdown editor showing the title field, templates dropdown and formatting toolbar, with the diagram button selected and a tooltip reading Diagram.
The editor toolbar carries a diagram button for adding a fenced block of diagram code.

Task

Where

Add a diagram

Editor > Insert > From code, or write a fenced block yourself



How it actually behaves.