md2pdf2

Installation
SKILL.md

MD2PDF2 Skill

Convert Markdown to beautiful, professionally styled PDFs using the md2pdf2 CLI tool with Handlebars templates.

Overview

md2pdf2 is a Node.js CLI tool that converts Markdown → HTML (via HBS template) → PDF using Puppeteer. It supports:

  • Custom .hbs Handlebars templates with {{{content}}} for markdown body
  • CSS styling (inline or external)
  • PDF format options (A4, Letter, etc.)
  • Frontmatter metadata (title, author, date, etc.)
  • Built-in templates: default, modern, minimal, newsletter, resume

Workflow

Step 1 — Understand the request

Installs
18
Repository
areai51/md2pdf2
First Seen
Feb 23, 2026