md-present

Turn a Markdown file into a polished, standalone HTML page — one command, no config. Use it to share plans, documentation, and reports with people who should not need a Markdown viewer.

Why md-present?

Quick start

npx md-present README.md

This writes README.html beside the Markdown file. Add --open to open it in your browser:

npx md-present README.md --open

Create a custom output file:

npx md-present README.md --out docs/index.html

Embed local images as base64 data URIs (for fully self-contained HTML):

npx md-present README.md --inline-images

Preview with a local dev server (re-renders on each refresh):

npx md-present README.md --serve

Use a custom port and auto-open the browser:

npx md-present README.md --serve --port 8080 --open

Features

CLI reference

Flag Description
-o, --out <file> Custom output path (creates directories automatically)
--open Open the result in your default browser
--inline-images Embed local images as base64 data URIs
--serve Start a local server instead of writing a file
-p, --port <number> Port for the local server (default: 3000)

Local development

pnpm install
pnpm test
pnpm md-present examples/sample.md

Demo

This README rendered by md-present: https://salauddinn.github.io/md-present/

Use cases

Future direction

The renderer is separate from the CLI so it can later be reused by a VS Code extension.