md mdhtml
v1.0 · single-file document format

Write Markdown. Ship one file that just opens.

mdhtml builds a self-contained .md.html document: the canonical Markdown source lives inside it, byte for byte. Readers get a rendered page with navigation, themes, copy, and download — no server, no network, no build step, opened straight from disk.

# scaffold, build, verify — three commands
npx mdhtml new brief --template spec
npx mdhtml build brief.md
npx mdhtml check brief.md

Why a single file

01

Portable by construction

Fonts, styles, runtime, and assets are embedded. A finished document makes zero network requests — it works from a USB stick as well as it works on the web.

02

Lossless round-trip

The canonical Markdown source travels inside the HTML, verbatim. mdhtml extract always recovers exactly what the author wrote.

03

Degrades honestly

No JavaScript? The document still renders as readable prose. Unknown container syntax degrades to plain text instead of silently breaking.