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. Pandoc is also able to write in a variety of formats, namely markdown, reStructuredText, HTML, LaTeX,.