- Mermaid and excalidraw fences render as vector diagrams in PDF and HTML output
- /diagram skill generates mermaid source, editable .excalidraw file, and SVG+PNG from English description
- Three output formats from one markdown with --to pdf|html|docx
- --strict flag makes missing, remote, out-of-tree, or oversized images fail CI
- Per-image directives for width and page orientation
- Broken fence prints diagnostic block with parse error
- Local image paths inline automatically and never truncate
- Phone photos downscale to print resolution
- Wide small-text diagrams get own vertically centered landscape page
- HTML is self-contained with zero network references
- Type is bigger with 12pt body and 56pt cover titles
- TOC links jump correctly
- Conservative auto-landscape for wide and diagram-like images
- Relative image paths render correctly in PDFs
- Vendored offline bundle includes mermaid 11.12.2 and excalidraw 0.18.0
From gstack
Mermaid and excalidraw fences render as vector diagrams in PDF and HTML output. Broken fence prints diagnostic block with parse error. /diagram skill generates mermaid source, editable .excalidraw file, and SVG+PNG from English description. Local image paths inline automatically and never truncate. Phone photos downscale to print resolution. Wide small-text diagrams get own vertically centered landscape page. Three output formats from one markdown: --to pdf|html|docx. HTML is self-contained with zero network references. Type is bigger with 12pt body, 56pt cover titles. TOC links jump correctly. --strict makes missing, remote, out-of-tree, or oversized images fail CI. Vendored offline bundle with mermaid 11.12.2 and excalidraw 0.18.0. Per-image directives for width and page orientation. Conservative auto-landscape for wide and diagram-like images. docs/howto-diagrams-and-formats.md walkthrough. Relative image paths render correctly in PDFs.