pandoc is a universal document converter that reads and writes in dozens of formats.
Scanned 9/6/2026
Install to Claude Code
npx -y skills add javimosch/supercli --skill quickstart --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Quickstart?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/javimosch-quickstart-a24503d2)More formats (shields.io, HTML) on the badges page.
# pandoc Quickstart
pandoc is a universal document converter that reads and writes in dozens of formats.
## Installation
```bash
brew install pandoc
```
## Basic Usage
### Convert Markdown to HTML
```bash
pandoc README.md -o README.html
```
### Convert to PDF (requires pdflatex or wkhtmltopdf)
```bash
pandoc document.md -o document.pdf
```
### Convert Word to Markdown
```bash
pandoc document.docx -o document.md
```
### Multiple formats
```bash
pandoc slides.md -t revealjs -o slides.html # Reveal.js slides
pandoc article.md -t latex -o article.tex # LaTeX
pandoc notes.md -t epub -o notes.epub # EPUB
```
## Common Conversions
- Markdown → HTML, PDF, LaTeX, Word, EPUB
- HTML → Markdown, PDF, Word
- LaTeX → HTML, Word, PDF
- Docx → Markdown, HTML, PDF
- Epub → Markdown, HTML
## Key Options
- `-f FORMAT` - Input format (auto-detected from extension)
- `-t FORMAT` - Output format
- `-o FILE` - Output file
- `--template FILE` - Use custom template
- `--css STYLE.css` - Include CSS stylesheet
- `--toc` - Generate table of contents
- `-V VAR=VALUE` - Set template variable
- `--standalone` - Produce standalone document
- `--number-sections` - Number sections
## Real-world Examples
### Batch convert Markdown files
```bash
for f in *.md; do pandoc "$f" -o "${f%.md}.html"; done
```
### Generate PDF with styling
```bash
pandoc document.md --css style.css -V margin=2cm -o document.pdf
```
### Convert with table of contents
```bash
pandoc README.md --toc -o README.html
```
### Markdown slides to Beamer PDF
```bash
pandoc slides.md -t beamer -o slides.pdf
```
## Resources
- [Official Documentation](https://pandoc.org/)
- [GitHub Repository](https://github.com/jgm/pandoc)
Is this your skill, or is something wrong with this listing? . Author removals are honored within 72 hours.
No comments yet. Be the first to comment!