markdown-to-pdf
Markdown-to-PDF conversion tool with support for syntax highlighting and custom styling.
Install
mkdir -p .claude/skills/markdown-to-pdf && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14713" && unzip -o skill.zip -d .claude/skills/markdown-to-pdf && rm skill.zipInstalls to .claude/skills/markdown-to-pdf
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
[Document Processing] Use when you need to convert markdown files to PDF with syntax highlighting and custom CSS support.Key capabilities
- →Convert Markdown files to PDF format
- →Apply syntax highlighting to code blocks in the PDF
- →Support custom CSS for styling the PDF output
- →Extract YAML frontmatter for title and metadata
- →Generate PDF output with default styling for fonts, margins, and tables
- →Output JSON on success with details like input, output, and page count
How it works
The skill uses `md-to-pdf` (which relies on Pandoc and a PDF engine) to convert Markdown input into a PDF, applying syntax highlighting and custom CSS as specified.
Inputs & outputs
When to use markdown-to-pdf
- →Generating technical documentation PDFs
- →Converting READMEs to formatted reports
- →Applying custom branding to markdown exports
About markdown-to-pdf
Converts local markdown files into high-quality PDFs. Supports custom CSS and syntax highlighting for code blocks via Pandoc and PDF engine plugins.
[Document Processing] Use when you need to convert markdown files to PDF with syntax highlighting and custom CSS support.
When not to use it
- →When the input is not a Markdown file
- →When a PDF engine (wkhtmltopdf or weasyprint) is not available
- →When only HTML output is desired
Prerequisites
Limitations
- →Requires `pandoc` and a PDF engine (wkhtmltopdf or weasyprint)
- →First run may download Chromium (~150MB) unless system Chrome is detected
- →Large documents may require more memory
How it compares
This skill provides a specialized Markdown-to-PDF conversion with built-in support for syntax highlighting and custom CSS, offering more control over the visual output than basic PDF printers.
Compared to similar skills
markdown-to-pdf side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| markdown-to-pdf (this skill) | 0 | 5mo | Review | Beginner |
| book-publishing | 0 | 6mo | Review | Intermediate |
| mdx-pdf-format | 0 | 4mo | Review | Intermediate |
| pdf-creator | 0 | 4mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by duc01226
View all by duc01226 →You might also like
book-publishing
fabioc-aloha
Markdown-to-PDF pipeline via Pandoc and LuaLaTeX with emoji rendering, dual output, and print-ready formatting
mdx-pdf-format
sazardev
Use whenever creating, renaming, or editing any file under docs/ in this repo, or when asked to compile/build the book PDF. Enforces the exact .mdx frontmatter, ID scheme, and heading-depth rules required by the go-pretty-pdf tool (https://github.com/sazardev/go-pretty-pdf) so the whole book keeps c
pdf-creator
seaworld008
Create PDF documents from markdown with proper Chinese font support using weasyprint. This skill should be used when converting markdown to PDF, generating formal documents (legal, trademark filings, reports), or when Chinese typography is required. Triggers include "convert to PDF", "generate PDF",
marker
benchflow-ai
Convert PDF documents to Markdown using marker_single. Use when Claude needs to extract text content from PDFs while preserving LaTeX formulas, equations, and document structure. Ideal for academic papers and technical documents containing mathematical notation.
markdown-converter
steipete
Convert documents and files to Markdown using markitdown. Use when converting PDF, Word (.docx), PowerPoint (.pptx), Excel (.xlsx, .xls), HTML, CSV, JSON, XML, images (with EXIF/OCR), audio (with transcription), ZIP archives, YouTube URLs, or EPubs to Markdown format for LLM processing or text analysis.
enhance-claude-memory
avifenesh
Use when improving CLAUDE.md or AGENTS.md project memory files.