pandoc

Conversion between markup formats

http://pandoc.org

Version on this page:1.17.1@rev:1
LTS Haskell 22.40:3.1.11.1
Stackage Nightly 2024-11-05:3.5
Latest on Hackage:3.5

See all snapshots pandoc appears in

LicenseRef-GPL licensed and maintained by John MacFarlane
This version can be pinned in stack with:pandoc-1.17.1@sha256:0ceaa11f58bcbaa0b3aa8babf7a92de818ff331f38193c8e42ee8bc174113681,22609

Module documentation for 1.17.1

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 several dialects of Markdown and (subsets of) HTML, reStructuredText, LaTeX, DocBook, MediaWiki markup, TWiki markup, Haddock markup, OPML, Emacs Org-Mode, txt2tags, Word Docx, ODT, and Textile, and it can write Markdown, reStructuredText, XHTML, HTML 5, LaTeX, ConTeXt, DocBook, OPML, TEI, OpenDocument, ODT, Word docx, RTF, MediaWiki, DokuWiki, Textile, groff man pages, plain text, Emacs Org-Mode, AsciiDoc, Haddock markup, EPUB (v2 and v3), FictionBook2, InDesign ICML, and several kinds of HTML/javascript slide shows (S5, Slidy, Slideous, DZSlides, reveal.js).

In contrast to most existing tools for converting Markdown to HTML, 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, 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.