The open-pandoc package
OpenPandoc is a variant of Pandoc that supports version 3.0 or later of the parser combinator library Parsec. In all other aspects, the code is unchanged from the original version. A separate package is necessary, unfortunately, as the original author of Pandoc refuses to support current versions of Parsec, because he thinks that they are too slow. It is true that Parsec 3.x is somewhat less performant than the 2.x branch used to be, so if you intend to use Pandoc for formatting huge amounts of data on a regular basis, it might be worthwile to build it with Parsec 2. For everyone else, however, the difference in speed is hardly noticable. Using Parsec 3 is much more convenient, though, because -- unlike the old version -- that package is oftentimes available through your system's packet manager, i.e. in ArchLinux.
Generally speaking, 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, Docbook, OpenDocument, ODT, RTF, MediaWiki, groff man pages, and S5 HTML slide shows.
Pandoc extends standard markdown syntax with footnotes, embedded LaTeX, definition lists, tables, and other features. A compatibility mode is provided for those who need a drop-in replacement for Markdown.pl.
In contrast to existing tools for converting markdown to HTML, which use regex substitutions, 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.
Properties
| Versions | 1.4, 1.5.1.1 |
|---|---|
| Dependencies | base (3.*), bytestring (≥0.9), containers (≥0.1), directory (≥1), extensible-exceptions, filepath (≥1.1), HTTP (≥4000.0.5), mtl (≥1.1), network (≥2), old-time (≥1), parsec (≥2.1), pretty (≥1), process (≥1), texmath, utf8-string (≥0.3), xhtml (≥3000.0), xml (≥1.3.5 & <1.4), zip-archive (≥0.1.1.4) or base (4.*), bytestring (≥0.9), containers (≥0.1), directory (≥1), extensible-exceptions, filepath (≥1.1), HTTP (≥4000.0.5), mtl (≥1.1), network (≥2), old-time (≥1), parsec (≥2.1), pretty (≥1), process (≥1), syb, texmath, utf8-string (≥0.3), xhtml (≥3000.0), xml (≥1.3.5 & <1.4), zip-archive (≥0.1.1.4) |
| License | GPL |
| Copyright | (c) 2006-2010 John MacFarlane |
| Author | John MacFarlane <jgm@berkeley.edu> |
| Maintainer | Peter Simons <simons@cryp.to> |
| Stability | alpha |
| Category | Text |
| Home page | http://johnmacfarlane.net/pandoc |
| Executables | markdown2pdf, pandoc |
| Upload date | Wed Apr 14 15:22:09 UTC 2010 |
| Uploaded by | PeterSimons |
| Built on | ghc-6.12 |
| Build failure | ghc-7.0 (log) |
Modules
- Text
- Text.Pandoc
- Text.Pandoc.Biblio
- Text.Pandoc.Blocks
- Text.Pandoc.CharacterReferences
- Text.Pandoc.Definition
- Text.Pandoc.Highlighting
- Text.Pandoc.ODT
- Readers
- Text.Pandoc.Shared
- Text.Pandoc.Templates
- Writers
- Text.Pandoc.Writers.ConTeXt
- Text.Pandoc.Writers.Docbook
- Text.Pandoc.Writers.HTML
- Text.Pandoc.Writers.LaTeX
- Text.Pandoc.Writers.Man
- Text.Pandoc.Writers.Markdown
- Text.Pandoc.Writers.MediaWiki
- Text.Pandoc.Writers.OpenDocument
- Text.Pandoc.Writers.RST
- Text.Pandoc.Writers.RTF
- Text.Pandoc.Writers.S5
- Text.Pandoc.Writers.Texinfo
- Text.Pandoc
Downloads
- open-pandoc-1.5.1.1.tar.gz (Cabal source package)
- package description (included in the package)