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
.hbsHandlebars 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