Pandoc is a Haskell library for converting from one markup format to another, and a command-line tool that uses this library.
Pandoc can convert between numerous markup and word processing formats, including, but not limited to, various flavors of Markdown, HTML, LaTeX and Word docx. Pandoc can also produce PDF output.
Pandoc’s enhanced version of Markdown includes syntax for tables, definition lists, metadata blocks, footnotes, citations, math, and much more. See below under Pandoc’s Markdown.
Pandoc has a modular design: it consists of a set of readers, which parse text in a given format and produce a native representation of the document (an abstract syntax tree or AST), and a set of writers, which convert this native representation into a target format. Thus, adding an input or output format requires only adding a reader or writer. Users can also run custom pandoc filters to modify the intermediate AST.
Because pandoc’s intermediate representation of a document is less expressive than many of the formats it converts between, one should not expect perfect conversions between every format and every other. Pandoc attempts to preserve the structural elements of a document, but not formatting details such as margin size. And some document elements, such as complex tables, may not fit into pandoc’s simple document model. While conversions from pandoc’s Markdown to all formats aspire to be perfect, conversions from formats more expressive than pandoc’s Markdown can be expected to be lossy.
Website: pandoc.org
Support: Manual, GitHub Code Repository
Developer: John MacFarlane
License: GNU General Public License v2.0
Pandoc is written in Haskell. Learn Haskell with our recommended free books and free tutorials.
Related Software
| eBook Utilities | |
|---|---|
| Sigil | Multi-platform WYSIWYG ebook editor |
| pandoc | Universal document converter |
| EpubCheck | Validate your EPUB Books |
| Booktype | Platform that produces beautiful, engaging books |
| Crowbook | Convert books written in Markdown to HTML, LaTeX/PDF and EPUB |
| PageEdit | Visual XHTML editor for ePub books |
| papeer | Web scraper for ereaders |
| Ace | Accessibility checking software for EPUB publications |
| Ebookmaker | Command-line conversion tool used by Project Gutenberg |
| Bookery | CLI-first ebook library manager |
| txt2epub | Convert text files to EPUB |
Read our verdict in the software roundup.
Explore our carefully curated directory of recommended free and open source software, covering every major software category.The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more. Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form. |


Please read our Comment Policy before commenting.