Skip to content

Latest commit

 

History

26 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mdhtml

One portable Markdown document format. Write Markdown, ship a single self-contained .md.html that opens in the browser from disk — no server, no network, no build step for the reader.

The canonical Markdown source lives inside the file. Readers get a rendered document with TOC navigation, themes, copy, and download; the source survives byte for byte, so extracting it returns exactly what the author wrote.

Quick start

npx mdhtml new intro --template memo      # scaffold from a canonical template
npx mdhtml build intro.md                 # produce intro.md.html (self-contained)
npx mdhtml check intro.md                 # portability verdict, no diagnostics
npx mdhtml extract intro.md.html -o intro-back.md   # recover the source

The first npx mdhtml run downloads the release binary for your platform, verifies its SHA-256 checksum, and installs it into a per-user bin directory; later runs reuse the installed binary without re-downloading. Add that directory to your PATH to use mdhtml directly.

Open the built intro.md.html in any browser via file:// — rendering, copying, and downloading all work offline.

Examples

Live at feliperun.github.io/md.html — five canonical documents, each with its own custom theme, proving mdhtml's per-document styling has no built-in ceiling:

Plus one real one — the author's own CV, "Blueprint" theme.

Install from source

npm ci
cargo build --release -p mdhtml
./target/release/mdhtml --version

Documentation

License

MIT

About

No description, website, or topics provided.

Resources

Stars

11 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages