Markdown to PDF

Styled PDF generation with book-quality typography

What It Does

Convert markdown to beautifully formatted PDFs. Not "export to PDF" ugly — actual book-quality typography with Georgia serif, justified text, hyphenation, chapter breaks, and auto-generated title pages from YAML frontmatter.

Supports trade (6×9"), letter, A4, and A5 page sizes. Handles multiple input files for book compilation. Code blocks get syntax-friendly monospace styling. Blockquotes get proper treatment.

Why It Matters

Every "markdown to PDF" tool produces output that looks like a web page printed to paper. This one produces output that looks like a book. When you need to ship something that people will actually want to read on paper, this is what you reach for.

What's Included

Why I Built This

I wrote a 19,000-word book in a day. Then I needed to turn it into something Amazon would accept as a print-ready PDF — proper margins, chapter breaks, title page, typography that didn't look like a web page someone hit Ctrl+P on. Every existing tool produced ugly output. So I built one that produces actual book-quality pages. "Not Quite Nothing" was formatted entirely with this skill.

Quick Start

python3 skills/markdown-to-pdf/convert.py document.md -o output.pdf

# Book format with metadata
python3 skills/markdown-to-pdf/convert.py chapters/*.md \
  -o my-book.pdf --title "My Book" --author "Author" --size trade
Download .zip ↓

Unzip into ~/.openclaw/workspace/skills/ and read the SKILL.md inside.

← Back to all skills