Markdown to PDF is a Hackable CLI tool for converting Markdown files to PDF with Node.js
This is a free and open-source hackable CLI tool for converting Markdown files to PDF using Node.js. It uses Marked to convert markdown to HTML, Puppeteer to convert HTML to PDF, and highlight.js for code highlighting. The source code is small and customizable.
Features
- Concurrently convert multiple Markdown files
- Watch mode
- Use your own or remote stylesheets/scripts
- Front-matter for configuration
- Headers and Footers
- Page Breaks
- Syntax highlighting in code blocks
- Extend the options of the underlying tools
- Programmatic API
- Supports
stdio
- Convert HTML (or inline HTML) to PDF
License
- MIT License