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

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Markdown to PDF

Markdown to PDF Web Site

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Markdown to PDF!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

TypeScript

Related Categories

TypeScript PDF Converters, TypeScript PDF Generation Libraries

Registered

2023-11-17