markdown-to-pdf

Convert Markdown files to beautiful PDF documents. Supports custom styling, code highlighting, and multiple output options. Use when users need to convert MD to PDF for documentation, notes, reports, or sharing.

3,891 stars

Best use case

markdown-to-pdf is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Convert Markdown files to beautiful PDF documents. Supports custom styling, code highlighting, and multiple output options. Use when users need to convert MD to PDF for documentation, notes, reports, or sharing.

Teams using markdown-to-pdf should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/markdown-to-pdf/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/alone86136/markdown-to-pdf/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/markdown-to-pdf/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How markdown-to-pdf Compares

Feature / Agentmarkdown-to-pdfStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Convert Markdown files to beautiful PDF documents. Supports custom styling, code highlighting, and multiple output options. Use when users need to convert MD to PDF for documentation, notes, reports, or sharing.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# markdown-to-pdf

## Overview

Convert Markdown text or files to professional-looking PDF documents. Uses `markdown` package to convert MD to HTML, then `wkhtmltopdf` to generate PDF. Supports code syntax highlighting and custom CSS styling.

## Features

- **Convert MD file to PDF**: Take a Markdown file and output a ready-to-share PDF
- **Standalone output**: Embeds all styles, no external dependencies
- **Code highlighting**: Automatic syntax highlighting for code blocks
- **Custom CSS**: Option to provide custom CSS for styling

## Dependencies

```bash
pip install markdown pygments
# You also need wkhtmltopdf installed:
# macOS: brew install wkhtmltopdf
# Ubuntu/Debian: sudo apt install wkhtmltopdf
```

## Usage

### Basic conversion
```bash
python3 scripts/convert.py input.md output.pdf
```

### With custom CSS
```bash
python3 scripts/convert.py --css custom.css input.md output.pdf
```

## Resources

### scripts/
- `convert.py` - Convert Markdown file to PDF

Related Skills

markdown-extract Skill

3891
from openclaw/skills

Extract clean markdown from any URL using the markdown.new API.

markdown-sync-pro

3891
from openclaw/skills

Markdown 一键同步到 Notion、GitHub Wiki、Medium 等平台

saved-markdown

3891
from openclaw/skills

Publish Markdown, HTML, and Slides pages, reports, and documents anonymously to https://saved.md. **TRIGGER THIS SKILL when ANY of the following are true:** 1. User asks to CREATE content that is naturally document-like (reports, summaries, guides, docs, pages, tables, analysis) 2. User mentions markdown, publishing, sharing, or making something public 3. The response you're about to generate is structured text with headers, tables, or formatted sections 4. User asks for anything that could be a "page" or "document" output 5. User asks for slides, a slide deck, a presentation, or a "deck" output **When in doubt: TRIGGER.** (User can always choose local-only) **ALWAYS offer four options:** (1) one-shot publish, (2) interactive edit-before-publish, (3) local-only, (4) enhance.

File to Markdown — Skill

3891
from openclaw/skills

## Overview

markdown-anything

3891
from openclaw/skills

Convert PDF, DOCX, XLSX, PPTX, images, audio, and 25+ file formats to clean Markdown using the Markdown Anything API.

markdown-knowledge

3891
from openclaw/skills

将本地 Markdown 知识库与 OpenClaw 集成,支持语义检索和上下文注入。仅在用户触发时检索(搜索知识库、查一下知识库等),不主动注入。

markdown-browser

3891
from openclaw/skills

Wrapper skill for OpenClaw web_fetch results. Use when you need MECE post-processing on fetched pages: policy decision from Content-Signal, privacy redaction, optional markdown normalization fallback, and stable output schema without re-implementing network fetch.

```markdown

3835
from openclaw/skills

---

markit-markdown-converter

3823
from openclaw/skills

Convert files, URLs, and media to markdown using the markit-ai CLI and SDK with pluggable converters and LLM support.

---

3891
from openclaw/skills

name: article-factory-wechat

Content & Documentation

humanizer

3891
from openclaw/skills

Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.

Content & Documentation

find-skills

3891
from openclaw/skills

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

General Utilities