Pandoc converts documents between many markup, office, wiki, bibliography, and slide formats. A Haskell library powers the standalone pandoc CLI and custom Lua readers or writers.
Overview
Pandoc converts text from one markup or document format to another through a shared abstract syntax tree. The command-line program and library accept dozens of inputs—including Markdown variants, reStructuredText, HTML, LaTeX, Word, Jupyter notebooks, and wiki dialects—and emit an equally broad set of outputs, with PDF generation routed through LaTeX, Groff, or HTML engines.
Its extended Markdown adds tables, definition lists, metadata blocks, footnotes, citations, and math. Filters and Lua scripts can transform the intermediate AST, and template customization adjusts final layout. A citation processor applies CSL styles from BibTeX, CSL JSON, YAML, and related bibliography formats across output types.
Because the internal model is simpler than some source formats, conversions preserve structure where possible but may drop fine layout details or struggle with complex tables. Conversions from Pandoc Markdown toward other formats aim to be faithful; reverse conversions from richer sources can be lossy.
Users install the binary locally and run pandoc from the shell. The same engine ships as a Haskell library with modular readers and writers, plus optional WebAssembly and online demos for trials. Custom Lua readers and writers extend support without recompiling the core.
Key features
- Broad input and output format support
- Enhanced Markdown with citations
- CSL bibliography and footnotes
- Lua filters and custom templates
- PDF via LaTeX or HTML engines
- Math and metadata in Markdown
- Custom Lua readers and writers
- Haskell library and CLI program
Use cases
- Converting Markdown to Word or PDF
- Migrating wiki or notebook content
- Generating slides from text sources
- Building automated document pipelines
- Academic manuscripts with citations