# Markpdf

> Convert markdown to beautiful, styled PDFs with light/dark themes. Use when the user needs to send a formatted document in chat, email, or messaging where markdown rendering isn't supported. Converts .md files to .pdf with headers, code blocks, tables, images, and more.

- Skill: `araa47/markpdf` (Agent Skill)
- Install (CLI): `npx skillmds@latest add araa47/markpdf`
- Raw SKILL.md: https://api.skillmd.com/api/skills/araa47/markpdf/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- License: MIT
- Author: araa47 (https://skillmd.com/u/araa47)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/araa47/markpdf

---


# markpdf

Convert markdown files to styled PDFs.

## Setup

```bash
uv tool install git+https://github.com/araa47/markpdf
```

## Usage

```bash
markpdf input.md                   # creates input.pdf
markpdf input.md -o report.pdf     # custom output
markpdf input.md --dark            # dark mode
markpdf input.md -k                # keep sections on same page
```

