A simple and hackable CLI tool for converting markdown to pdf. It uses Marked to convert markdown to HTML and Puppeteer (headless Chromium) to further convert the HTML to PDF. It also uses highlight.js for code highlighting. The whole source code of this tool is only ~250 lines of JS ~500 lines of Typescript and ~100 lines of CSS, so it is easy to clone and customize.
Features
- Concurrently convert multiple Markdown files
- Use your own or remote stylesheets/scripts
- Syntax highlighting in code blocks
- Extend the options of the underlying tools
- Supports stdio
- Headers and Footers
License
MIT LicenseFollow Markdown to PDF
Other Useful Business Software
Go From Idea to Deployed AI App Fast
Access Gemini 3 and 200+ models. Build chatbots, agents, or custom models with built-in monitoring and scaling.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Markdown to PDF!