build
Compile to a single HTML file.
Output goes next to the source file by default: plan.md → plan.html.
Options
Globs are expanded by Pamphlet, not the shell. And nothing is excluded by default — "**/*.md" sweeps up hundreds of third-party documents under node_modules. See Images and assets.
A failed diagram still produces output
Its place gets an explanatory placeholder box, everything else is correct, and the exit code is 1 — so you can see the problem is confined to that one diagram.
Partial success across several files
Unreadable files only join the failure list; they do not count towards "passed".
Size breakdown
Real output, verbatim (compiling this repository's examples/demo.md; compiler messages are Chinese-only for now):
The segments do not overlap and add up to the whole file. Pamphlet sets no size limit; it just itemises the bill. Whether a diagram is worth 16KB is your judgement, not the compiler's.