MA

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

Installs 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.
121 chars✓ has a “when” trigger
Beginner

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

You give it
Markdown file path
You get back
PDF file with syntax highlighting and custom styling

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

npm dependencies (`md-to-pdf`, `gray-matter`)pandocwkhtmltopdf or weasyprint

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.

SkillInstallsUpdatedSafetyDifficulty
markdown-to-pdf (this skill)05moReviewBeginner
book-publishing06moReviewIntermediate
mdx-pdf-format04moReviewIntermediate
pdf-creator04moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

Search skills

Search the agent skills registry