@n-teddy/md-pdf
v0.2.0
Published
Print-ready Markdown to PDF converter (CLI + API)
Maintainers
Readme
md-pdf
Print-ready Markdown → PDF converter for Node.js with both CLI (md2pdf) and programmatic API. Supports themes, plugins (Mermaid, math, TOC, footnotes, frontmatter), Watch mode, multi-file/book builds, and Chromium or lite rendering.
Install
pnpm add -D @n-teddy/md-pdf
# or
npm install --save-dev @n-teddy/md-pdfCLI
md2pdf input.md -o output.pdfKey flags (see docs/v2 and docs/v3 for advanced usage):
--theme <name|path>--renderer chromium|lite--toc,--footnotes,--mermaid,--math--watchfor live rebuildsbook build/book previewfor V3 book-mode projects
API
import { convertMarkdownToPdf } from "@n-teddy/md-pdf";
await convertMarkdownToPdf("# Hello", {
output: "hello.pdf",
renderer: "chromium",
toc: true,
});See docs/ for architecture, plugins, themes, and book publishing guidance.
Releasing
CI auto-runs on main; Changesets manages versions and publishes to npm when release PRs are merged.
