Pandoc is a Haskell library for converting from one markup format to another, and a command-line tool that uses this library. It can read markdown and (subsets of) reStructuredText, HTML, and LaTeX, and it can write markdown, reStructuredText, HTML, LaTeX, DocBook, OpenDocument XML, RTF, ODT, GNU Texinfo, MediaWiki markup, and S5 HTML slide shows. Pandoc extends standard markdown syntax with footnotes, embedded LaTeX, and more. A compatibility mode is provided for those who need a drop-in replacement for Markdown.pl. Included wrapper scripts make it easy to convert markdown to PDFs and Web pages to markdown documents. It has a modular design where the addition of a new input or output format requires only the addition of a reader or writer module.
| Tags | Text Processing Markup HTML/XHTML TeX/LaTeX |
|---|---|
| Licenses | GPL |
| Implementation | Haskell |
Recent releases


Changes: In addition to fixing a number of bugs, this release adds two new features: user control over the email obfuscation method and support for literate Haskell.


Changes: This release adds four new output formats: OpenDocument XML, GNU Texinfo, ODT, and MediaWiki markup. Pandoc's markdown now supports a new delimited (or "fenced") code block syntax, with optional syntax highlighting. The build system has been cleaned up, and the API now provides handy generic functions for querying and transforming documents. Support for LaTeX math in Markdown documents has been improved.


Changes: This is mainly a bugfix release, but includes two enhancements. A --sanitize-html option has been added, which sanitizes HTML in Markdown and HTML input using a whitelist method. The -H, -A, and -B options have been made cumulative: if they are specified multiple times on the command lines, multiple files will be included.


Changes: This release includes many bugfixes and structural improvements. Support for box-style block quotes has been removed. TeX math is now rendered using Unicode by default, but three options are provided for more accurate rendering in HTML: ASCIIMathML, gladTeX, and mimeTeX. ConTeXt output has been greatly improved. A new --no-wrap option has been added to suppress line wrapping. The build process has been updated for compatibility with GHC 6.8.1.


Changes: Several bugs were fixed in ordered lists, LaTeX footnotes, include files, and HTML tables. Text.Pandoc.ASCIIMathML was exposed. A new rule was added for enhanced ordered lists: capital letters followed by periods must be separated from the list item by two spaces to avoid misinterpretation of initials. OS X packages are no longer supported due to issues with dynamic libraries. Instead, a MacPorts Portfile is now provided.