markdown-to-pdf

markdown-to-pdf is a skill for Claude Code, Codex from yonggao/claude-plugins. It costs 0 tokens per session (1,763 once invoked), scanned A, original, MIT.

A tool for turning Markdown files, which are plain-text documents with simple formatting marks, into PDFs or slide presentations using Marp.

In plain words
What is it for?
Exporting documentation, README files, and Markdown slide decks as PDFs, with slide breaks, themes, presenter notes, code highlighting, and CJK character support.
Why use it?
It avoids manually rebuilding documents or presentations when the source content is already written in Markdown.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit Exporting documentation, README files, and Markdown slide decks as PDFs, with slide breaks, themes, presenter notes, code highlighting, and CJK character support.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yonggao/claude-plugins/markdown-to-pdf
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add yonggao/claude-plugins --skill markdown-to-pdf
Clone the repo
git clone --depth 1 https://github.com/yonggao/claude-plugins

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin markdown-to-pdf/plugin install markdown-to-pdf after adding the marketplace above.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for markdown-to-pdf

README.md
[![agentmods](https://agentmods.dev/badge/skills/yonggao/claude-plugins/markdown-to-pdf.svg)](https://agentmods.dev/skills/yonggao/claude-plugins/markdown-to-pdf)
Your own site
<a href="https://agentmods.dev/skills/yonggao/claude-plugins/markdown-to-pdf"><img src="https://agentmods.dev/badge/skills/yonggao/claude-plugins/markdown-to-pdf.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,763 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01763
Opus 5 $0.00000 $0.00881
Sonnet 5 $0.00000 $0.00353
Haiku 4.5 $0.00000 $0.00176

Measured 8d ago against content hash c7ee4e91fb8d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

markdown-to-pdf scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (markdown_to_pdf.py, marp_to_pdf.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/markdown-to-pdf/SKILL.md · 376 lines

How it starts

The opening of the file, as written. The whole thing — 376 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Markdown to PDF Converter Skill

This skill helps you convert Markdown files to PDF format with support for both document-style and presentation-style outputs using Marp.

When to Use This Skill

Use this skill when the user wants to:

  • Convert Markdown (.md) files to PDF presentations
  • Generate slide decks from Markdown
  • Create professional PDFs from documentation
  • Export README files as PDFs
  • Generate presentation-ready slides with Marp themes

Available Conversion Methods

Method 1: Marp Presentation (Recommended)

Best for: Presentations, slide decks, visual content

Command:

python marp_to_pdf.py input.md

Features:

  • Beautiful presentation slides from Markdown
  • Multiple built-in themes (default, gaia, uncover)
  • Automatic slide breaks with ---
  • Support for presenter notes
  • Code syntax highlighting
  • Chinese/CJK character support
  • Outputs: input.pdf

Method 2: Marp with Custom Theme

Best for: Branded presentations, custom styling

Command:

python marp_to_pdf.py input.md --theme gaia

Supported Themes:

  • default - Clean and simple
  • gaia - Modern and colorful
  • uncover - Minimalist and elegant

Required Dependencies

The skill requires Marp CLI via npm:

# Install Node.js first (if not installed)
# Then install Marp CLI globally
npm install -g @marp-team/marp-cli

# Or use npx (no installation needed)
npx @marp-team/marp-cli --version

Marp Markdown Syntax

Basic Slide Structure

---
marp: true
theme: default
---

# Title Slide

Your presentation content

---

## Second Slide

- Bullet point 1
- Bullet point 2

---

## Code Example

\`\`\`python
def hello():
    print("Hello, World!")
\`\`\`

Slide Directives

<!-- _class: lead -->
# Centered Title Slide

<!-- _class: invert -->
## Inverted Color Slide

<!-- backgroundColor: #123456 -->
## Custom Background

Presenter Notes

## Slide Title

Slide content here

<!--
These are presenter notes
They won't appear in the PDF
-->

Read the full file on GitHub · 376 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 376 lines · 0 tokens per session scan A c7ee4e91fb8d

Subscribe to this mod's changes

markdown-to-pdf is a skill published in the GitHub repository yonggao/claude-plugins (2 stars, last pushed 8mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,763 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.