pandoc-mode is an Emacs mode for interacting with pandoc. Pandoc is a program (plus libraries) written by John MacFarlane that can convert a text written in one markup language into another markup language. It supports as input formats markdown and (subsets of) reStructuredText, HTML, and LaTeX, and as output formats markdown, reStructuredText, HTML, LaTeX, ConTeXt, PDF, RTF, DocBook XML, OpenDocument XML, OpenOffice.org text document (odt), GNU Texinfo, MediaWiki markup, groff man pages, and S5 HTML slide shows.
pandoc-mode is implemented as a minor mode that can be activated alongside the major mode for any of the supported input formats. It provides facilities to set the various options that pandoc accepts and to run pandoc on the input file. It supports the following features:
- Different output profiles for a single input file, so that you can, for example, write your text in markdown and then translate it to HTML for online reading, PDF for offline reading and Texinfo for reading in Emacs.
- Settings can be saved and loaded automatically when an input file is opened.
- Project files, that define settings that apply to all files in a specific directory (which can be overridden on a per-file basis).
- Embeddable Elisp code that runs before the input file is sent to pandoc.
Download
The source code is released under a BSD-license and available here:
Version 0.1.6: pandoc-mode.el
Note that this should be considered alpha software, so bugs are likely. Please report any bugs you may find to .
Also, if you have any suggestions for improvements, I'd appreciate hearing them.