Loading...
Loading...
Convert documents between formats using Pandoc. Use when the user asks to convert files between formats like markdown, docx, html, pdf, latex, epub, rtf, csv, xlsx, or pptx. Triggers on requests like "convert this to Word", "export as PDF", "turn this markdown into HTML", or "convert the CSV to a table".
npx skill4agent add jrajasekera/claude-skills pandoc-converter# Basic conversion (format auto-detected from extensions)
python scripts/convert.py input.md output.docx
# Specify output format only
python scripts/convert.py document.md --to html
# Check if Pandoc is installed
python scripts/convert.py --check
# List supported formats
python scripts/convert.py --formatsreferences/format-compatibility.md| From | To | Command |
|---|---|---|
| Markdown | Word | |
| Markdown | | |
| Markdown | HTML | |
| Word | Markdown | |
| CSV | HTML table | |
| LaTeX | |
| Option | Description |
|---|---|
| Override input format detection |
| Specify output format (if no output file) |
| Include document headers/footers |
| Add table of contents |
| PDF engine: pdflatex, xelatex, lualatex |
python scripts/convert.py --check# macOS
brew install pandoc
# Ubuntu/Debian
sudo apt-get install pandoc
# For PDF output, also install LaTeX:
# macOS: brew install --cask mactex-no-gui
# Ubuntu: sudo apt-get install texlive-xetex