Your documents grow diagrams. Mermaid and excalidraw fences render as real pictures,
- Mermaid code fences render as inline vector SVG diagrams, fully offline, with source preserved for round-trips
- Excalidraw code fences render as inline vector SVG
- /diagram skill to describe flows in English and generate mermaid source, editable excalidraw files, and rendered SVG and PNG
- lib/diagram-render/ vendored offline bundle
- --to pdf|html|docx output formats to export one markdown file three ways
- Per-image directives
- Conservative auto-landscape for wide diagrams
- --strict flag to turn missing, remote, out-of-tree, or oversized images into hard CI failures
- docs/howto-diagrams-and-formats.md documentation
- Typography scale increased across the board
- Local images inline as data URIs
- TOC links resolve in every format
- Remote images are blocked with a visible placeholder
- Relative image paths render correctly in PDFs
- Fenced code inside lists survives the render
- Documents containing $&-style sequences in diagram labels render exactly
- Broken mermaid fences print a loud red diagnostic block with the parse error instead of silent raw code
- Phone photos downscale to print resolution instead of blowing up the file
- Wide small-text diagrams promote to vertically centered landscape page inside otherwise portrait document
and make-pdf now ships single-file HTML and Word output from the same markdown.
Put a ```mermaid fence in your markdown and make-pdf renders it as a crisp vector diagram, fully offline, with the source preserved for round-trips.
A broken fence prints a loud red diagnostic block with the parse error, never silent raw code.
The new /diagram skill goes the other way: describe a flow in English and get a triplet back, the mermaid source, an editable .excalidraw file you can open at excalidraw.com in the hand-drawn style, and rendered SVG + PNG.
Images got the same care: local paths inline automatically and never truncate, phone photos downscale to print resolution instead of blowing up the file, and a wide small-text diagram promotes itself onto a vertically centered landscape page inside an otherwise portrait document.
One markdown file now exports three ways: --to pdf | html | docx, where html is one self-contained file with zero network references.
Type is bigger across the board, TOC links actually jump, and --strict turns missing, remote, out-of-tree, or oversized images into hard CI failures.
Added: ```mermaid and ```excalidraw fences render as inline vector SVG.
Added: /diagram skill.
Added: lib/diagram-render/ vendored offline bundle.
Added: --to pdf|html|docx output formats.
Added: Per-image directives.
Added: Conservative auto-landscape.
Added: --strict for CI.
Added: docs/howto-diagrams-and-formats.md.
Changed: Typography scale.
Local images inline as data URIs.
TOC links resolve in every format.
Remote images are blocked with a visible placeholder.
Fixed: Relative image paths render correctly in PDFs.
Fenced code inside lists survives the render.
Documents containing $&-style sequences in diagram labels render exactly.