craft-cli 0.10.0: Mermaid diagrams in Craft
Insert a Mermaid diagram from the command line. Craft renders it inside your document.
1 min read
craft-cli 0.10.0 adds craft blocks mermaid. Pass a diagram file, inline source or piped text. Craft renders the diagram inside the document.
craft blocks mermaid PAGE_ID --file diagram.mmd
craft blocks mermaid PAGE_ID --code "flowchart LR; Visitor --> App; App --> Database"
cat diagram.mmd | craft blocks mermaid PAGE_ID -The command supports page and daily-note targets, placement at the start or end, a preview with --dry-run --json, and undo. Pass Mermaid source without Markdown fences. Craft handles rendering; the CLI preserves the source.
Command help and the bundled agent skill now explain native rendering and show the exact code-block payload. Release and verification on GitHub.