simonhaenisch/md-to-pdf
Hackable CLI tool for converting Markdown files to PDF using Node.js and headless Chrome. observed · 2026-08-28
Health v2 · maintenance only
54/100
- Activity 55
- Release rhythm 27
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3407
- days_rel: 273
- days_push: 273
- n_releases_24m: 1
Adoption not part of the score
1950 stars · 163 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A hackable Node.js CLI tool that converts Markdown files to PDF using Marked for HTML conversion and Puppeteer (headless Chromium) for rendering. It supports watch mode, custom stylesheets, front-matter configuration, syntax highlighting, and a programmatic API.
Use cases
- convert markdown files to pdf from the command line
- generate pdf documentation from markdown
- turn homework or assignments written in markdown into pdf
- batch convert multiple markdown files to pdf concurrently
- watch a markdown file and regenerate pdf on changes
- apply custom css styles when exporting markdown to pdf
- convert html to pdf via headless chrome
When to choose
- you want a simple, hackable markdown-to-pdf converter with a small codebase you can customize
- you need styling control via CSS, front-matter config, headers/footers, and page breaks
- you want watch mode for iterative document editing
- you prefer a Node.js/npm-based workflow
When to avoid
- you need a lightweight tool without a headless Chromium dependency
- you need LaTeX-quality typesetting for academic papers
- you need a GUI-based document converter
- you need conversion formats other than PDF
Facets
cli-tool · maturity active
pdf markdown cli developer-tools developer-tools documentation pdf files cli cross-platform markdown-to-pdf puppeteer headless-chrome pdf-generation syntax-highlighting watch-mode nodejs
2 sources
- readme: https://github.com/simonhaenisch/md-to-pdf · fetched 2026-08-28 · 7457586240ca
- registry_npm: https://registry.npmjs.org/md-to-pdf · fetched 2026-08-29 · b8b344d89c51
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| simonhaenisch/md-to-pdf | main | 54 |
For agents
markdown · JSON · MCP: product_card(name="simonhaenisch/md-to-pdf")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem