2006-11-08 08:19:59 +01:00
% Pandoc
2007-07-14 08:28:09 +02:00
# Overview
2006-11-08 18:45:24 +01:00
Pandoc is a [Haskell] library for converting from one markup format
2006-11-08 08:19:59 +01:00
to another, and a command-line tool that uses this library. It can read
[markdown] and (subsets of) [reStructuredText], [HTML], and [LaTeX],
2007-07-15 05:14:05 +02:00
and it can write [markdown], [reStructuredText], [HTML], [LaTeX], [ConTeXt],
2008-08-10 19:34:02 +02:00
[PDF], [RTF], [DocBook XML], [OpenDocument XML], [ODT], [GNU Texinfo],
2008-09-11 00:40:45 +02:00
[MediaWiki markup], [groff man] pages, and [S5] HTML slide shows.
2007-07-14 08:28:09 +02:00
2007-07-21 21:55:56 +02:00
Pandoc features
2007-07-14 08:28:09 +02:00
- Modular design, using separate writers and readers for each
2007-07-21 21:55:56 +02:00
supported format.
- A real markdown parser, not based on regex substitutions.
2007-09-02 17:03:18 +02:00
[More accurate] and [much faster] than `Markdown.pl`.
2007-08-16 00:38:15 +02:00
- Also parses (subsets of) reStructuredText, LaTeX, and HTML.
- Multiple output formats: HTML, Docbook XML, LaTeX, ConTeXt,
2008-09-11 00:40:45 +02:00
reStructuredText, Markdown, RTF, groff man pages, OpenDocument
XML, ODT (Open Office document), MediaWiki, GNU Texinfo,
S5 slide shows.
2007-07-14 08:28:09 +02:00
- Unicode support.
- Optional "smart" quotes, dashes, and ellipses.
- Automatically generated tables of contents.
2007-12-09 00:00:35 +01:00
- Support for displaying math in HTML.
2007-07-21 21:55:56 +02:00
- Extensions to markdown syntax:
+ Document metadata (title, author, date).
+ Footnotes, tables, and definition lists.
+ Superscripts, subscripts, and strikeout.
2007-07-24 02:02:16 +02:00
+ Inline LaTeX math and LaTeX commands.
+ Markdown inside HTML blocks.
2007-08-15 18:19:37 +02:00
+ Enhanced ordered lists: start number and numbering style
are significant.
2008-02-10 19:59:40 +01:00
+ Delimited (unindented) code blocks with syntax highlighting.
2007-07-21 21:55:56 +02:00
+ Compatibility mode to turn off syntax entensions and emulate
`Markdown.pl`.
2007-07-14 08:28:09 +02:00
- Convenient wrapper scripts:
2008-08-27 07:50:26 +02:00
+ `markdown2pdf` converts directly from markdown to PDF, using
`pdflatex`.
2007-07-14 08:28:09 +02:00
+ `html2markdown` makes it easy to produce a markdown version
of any web page.
+ `hsmarkdown` is a drop-in replacement for `Markdown.pl`.
- Multi-platform: runs on Windows, MacOS X, Linux, Unix.
- Free software, released under the [GPL].
2007-09-29 22:43:59 +02:00
To see what pandoc can do, see the [demonstration page](examples.html),
or [try pandoc on the web](/pandoc/try).
2007-07-14 08:28:09 +02:00
# Documentation
- [User's Guide](README.html)
- [Demonstrations](examples.html)
- Man pages
2008-01-23 03:17:35 +01:00
- [`pandoc(1)`](pandoc.1.html)
2008-08-27 07:50:26 +02:00
- [`markdown2pdf(1)`](markdown2pdf.1.html)
2008-01-23 03:17:35 +01:00
- [`html2markdown(1)`](html2markdown.1.html)
- [`hsmarkdown(1)`](hsmarkdown.1.html)
2008-02-24 06:48:26 +01:00
- [Library documentation](doc/pandoc/index.html) (for Haskell programmers)
2007-08-26 19:25:39 +02:00
- [Installation instructions](INSTALL.html)
2007-12-09 00:00:35 +01:00
- [Changelog](changelog.txt)
2007-07-14 08:28:09 +02:00
# Downloads
2007-08-26 17:41:45 +02:00
For installation instructions for all architectures, see
2008-11-17 04:06:04 +01:00
[INSTALL](INSTALL.html). Pandoc is in the [MacPorts], [Debian],
[Ubuntu], [Slackware], [Arch], and [FreeBSD ports] repositories.
Note that the version of pandoc in these repositories may not be the
most recent.
2007-08-26 17:41:45 +02:00
- [Source tarball]
2008-09-14 02:39:55 +02:00
- [Windows installer]
2007-07-14 08:28:09 +02:00
2008-11-06 18:04:34 +01:00
# Extras
- [vim syntax file for pandoc], courtesy of tao_zhyn
2008-12-03 16:54:09 +01:00
- [WordPress EasyFilter], by Yang Zhang, makes it easy to use pandoc
with WordPress blogs.
2008-11-06 18:04:34 +01:00
2007-07-14 08:28:09 +02:00
# Code repository
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
# Reporting bugs
You may view existing bug reports and submit new ones at
<http://code.google.com/p/pandoc/issues/list>.
2007-02-11 20:20:03 +01:00
2007-07-14 08:28:09 +02:00
# Mailing lists
2006-11-08 08:19:59 +01:00
2007-07-14 08:28:09 +02:00
- [pandoc-announce]: Announcements of new releases only.
- [pandoc-discuss]: General discussion of pandoc.
2006-11-08 08:19:59 +01:00
2007-07-14 08:28:09 +02:00
# News
2006-11-08 08:19:59 +01:00
2009-03-01 20:00:23 +01:00
- Version 1.2 release (March 1, 2009).
+ Added support for literate Haskell. lhs support is triggered by
'+lhs' suffixes in formats. For example, 'latex+lhs' is literate
Haskell LaTeX. '.lhs' files are treated by default as literate
markdown.
+ Added --email-obfuscation option.
+ Brought citeproc support up to date for citeproc-hs-0.2.
+ Many bugs fixed. See [changelog] for details.
2008-11-06 18:04:34 +01:00
- Version 1.1 release (November 6, 2008).
+ New --jsmath option supporting use of pandoc with [jsMath].
+ Classes on HTML table output for better CSS styling.
+ Windows installer no longer requires admin privileges.
+ Many bugs fixed. See [changelog] for details.
2008-09-14 02:39:55 +02:00
- Version 1.0 release (September 13, 2008).
2008-09-11 00:40:45 +02:00
+ New writers for MediaWiki, GNU Texinfo (thanks to Peter Wang),
OpenDocument XML (thanks to Andrea Rossato), and ODT (OpenOffice
document).
+ New [delimited code blocks](README.html#delimited-code-blocks),
with optional syntax highlighting.
+ Reorganized build system: pandoc can now be built using standard
Cabal tools. It can be compiled on Windows without Cygwin.
The tests can also be run without perl or unix tools.
+ LaTeXMathML replaces ASCIIMathML for rendering math in HTML.
+ Support for "displayed" math.
+ Common abbreviations are now handled more intelligently, with
a non-breaking space (and not a sentence-ending space) after
the period.
+ Code is -Wall clean.
+ Many bug fixes and small improvements. See [changelog] for
full details.
2008-01-08 20:57:27 +01:00
- Version 0.46 released (January 8, 2008).
+ Added a `--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.
+ Made -H, -A, and -B options cumulative: if they are specified
multiple times, multiple files will be included.
+ Many bug fixes and small improvements. See [changelog] for full
details.
2007-12-09 21:15:52 +01:00
- Version 0.45 released (December 9, 2007).
2007-12-09 00:00:35 +01:00
+ Many bug fixes and structural improvements. See [changelog] for
full details.
+ Improved treatment of math. Math is now rendered using unicode
by default in HTML, RTF, and DocBook output. For more accurate
display of math in HTML, `--gladtex`, `--mimetex`, and `--asciimathml`
options are provided. See the [User's Guide](README.html#math) for
details.
+ Removed support for box-style block quotes in markdown.
+ More idiomatic ConTeXt output.
+ Text wrapping in ConTeXt and LaTeX output.
+ Pandoc now correctly handles all standard line endings
(CR, LF, CRLF).
+ New `--no-wrap` option that disables line wrapping and minimizes
whitespace in HTML output.
+ Build process is now compatible with both GHC 6.8 and GHC 6.6.
GHC and GHC_PKG environment variables may be used to specify
which version of the compiler to use, when multiple versions are
installed.
2007-07-14 08:28:09 +02:00
# Disclaimer
2006-11-08 08:19:59 +01:00
2008-09-11 00:40:45 +02:00
Pandoc carries no warranties of any kind.
2006-11-08 08:19:59 +01:00
2007-07-14 08:28:09 +02:00
[More accurate]: http://code.google.com/p/pandoc/wiki/PandocVsMarkdownPl
2007-09-02 17:03:18 +02:00
[much faster]: http://code.google.com/p/pandoc/wiki/Benchmarks
2007-07-14 08:28:09 +02:00
2007-09-13 19:26:01 +02:00
[John MacFarlane]: http://johnmacfarlane.net/
2006-11-08 08:19:59 +01:00
[markdown]: http://daringfireball.net/projects/markdown/
[reStructuredText]: http://docutils.sourceforge.net/docs/ref/rst/introduction.html
[S5]: http://meyerweb.com/eric/tools/s5/
[HTML]: http://www.w3.org/TR/html40/
[LaTeX]: http://www.latex-project.org/
2007-07-15 05:14:05 +02:00
[ConTeXt]: http://www.pragma-ade.nl/
2006-11-08 08:19:59 +01:00
[RTF]: http://en.wikipedia.org/wiki/Rich_Text_Format
2008-08-10 19:34:02 +02:00
[PDF]: http://en.wikipedia.org/wiki/Portable_Document_Format
[ODT]: http://en.wikipedia.org/wiki/OpenDocument
2007-01-01 22:08:12 +01:00
[DocBook XML]: http://www.docbook.org/
2008-03-25 03:48:14 +01:00
[OpenDocument XML]: http://opendocument.xml.org/
2008-07-27 05:25:51 +02:00
[MediaWiki markup]: http://www.mediawiki.org/wiki/Help:Formatting
2007-07-03 06:11:57 +02:00
[groff man]: http://developer.apple.com/DOCUMENTATION/Darwin/Reference/ManPages/man7/groff_man.7.html
2008-02-24 06:48:59 +01:00
[GNU Texinfo]: http://www.gnu.org/software/texinfo/
2006-11-08 08:19:59 +01:00
[Haskell]: http://www.haskell.org/
[GHC]: http://www.haskell.org/ghc/
2006-12-20 07:56:41 +01:00
[GPL]: http://www.gnu.org/copyleft/gpl.html
2007-08-25 19:52:16 +02:00
[Source tarball]: http://code.google.com/p/pandoc/downloads/detail?name=pandoc-@VERSION@.tar.gz "Download source tarball from Pandoc's Google Code site"
2008-09-14 02:39:55 +02:00
[Windows installer]: http://code.google.com/p/pandoc/downloads/detail?name=pandoc-@VERSION@-setup.exe "Download Windows installer from Pandoc's Google Code site"
2008-11-17 04:06:04 +01:00
[Debian]: http://packages.debian.org/lenny/pandoc
[Slackware]: http://www.linuxpackages.net/search_view.php?by=name&name=pandoc&ver=
[Arch]: http://aur.archlinux.org/packages.php?ID=19804
2007-08-28 00:18:36 +02:00
[FreeBSD ports]: http://www.freshports.org/textproc/pandoc/
2008-09-11 00:40:45 +02:00
[Ubuntu]: http://www.ubuntu.com
2007-09-27 03:20:05 +02:00
[MacPorts]: http://db.macports.org/port/show/4218
2007-07-14 08:28:09 +02:00
[pandoc-announce]: http://groups.google.com/group/pandoc-announce
[pandoc-discuss]: http://groups.google.com/group/pandoc-discuss
2007-12-09 00:00:35 +01:00
[changelog]: changelog.txt
2008-11-06 18:04:34 +01:00
[vim syntax file for pandoc]: http://www.vim.org/scripts/script.php?script_id=2389
[jsMath]: http://www.math.union.edu/~dpvc/jsMath/
2008-12-03 16:54:09 +01:00
[WordPress EasyFilter]: http://assorted.sourceforge.net/wp-easy-filter/
2006-11-08 08:19:59 +01:00