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, ConTeXt, RTF, DocBook XML, groff man, and S5 HTML slide shows.
Pandoc features
Markdown.pl.Markdown.pl.html2markdown makes it easy to produce a markdown version of any web page.markdown2pdf converts markdown to PDF in one step.hsmarkdown is a drop-in replacement for Markdown.pl.To see what pandoc can do, see the demonstration page, or try pandoc on the web.
For installation instructions for all architectures, see INSTALL. Note that pandoc is in the MacPorts, Debian unstable, and FreeBSD ports repositories. Abhishek Dasgupta has also contributed an Arch linux PKGBUILD script. Starting with release 8.04 (“Hardy Heron”), pandoc will be included in Ubuntu linux.
Pandoc has a publicly accesible subversion repository at Google Code (http://code.google.com/p/pandoc). To check out the latest, bleeding-edge source code:
svn checkout http://pandoc.googlecode.com/svn/trunk/ pandoc
You may view existing bug reports and submit new ones at http://code.google.com/p/pandoc/issues/list.
Version 0.46 released (January 8, 2008).
--sanitize-html option (and a corresponding parameter in ParserState for those using the pandoc libraries in programs). This option causes pandoc to sanitize HTML (in HTML or Markdown input) using a whitelist method. Possibly harmful HTML elements are replaced with HTML comments. This should be useful in the context of web applications, where pandoc may be used to convert user input into HTML.Version 0.45 released (December 9, 2007).
--gladtex, --mimetex, and --asciimathml options are provided. See the User’s Guide for details.--no-wrap option that disables line wrapping and minimizes whitespace in HTML output.Version 0.44 released (September 3, 2007).
--toc was used, anchors were put around headers, which is invalid XHTML (block content within inline element). Now the anchors are put inside the header tags. Resolves Issue #23.Setup.hs instead of using runhaskell, which throws an error on platforms where GHC is “not built for interactive use”. Closes Debian #440668.Version 0.43 released (September 2, 2007).
` characters not followed by another ` character. For example: ` h ``` i ` -> <code>h ``` i</code>.This is an early, “alpha” release. It carries no warranties of any kind.