git.iko.soy/typeable/pandoc
on rc/2.11.0.4 help sign in
typeable/pandoc/README.md
248 lines 11 kB history raw
1<!-- Do not edit this file. It is generated automatically from
2README.template and MANUAL.txt via the command:
3pandoc --lua-filter tools/update-readme.lua README.template -o README.md
4-->
6Pandoc
7======
9[![github
10release](https://img.shields.io/github/release/jgm/pandoc.svg?label=current+release)](https://github.com/jgm/pandoc/releases)
11[![hackage
12release](https://img.shields.io/hackage/v/pandoc.svg?label=hackage)](http://hackage.haskell.org/package/pandoc)
13[![homebrew](https://img.shields.io/homebrew/v/pandoc.svg)](http://brewformulas.org/Pandoc)
14[![stackage LTS
15package](http://stackage.org/package/pandoc/badge/lts)](http://stackage.org/lts/package/pandoc)
16[![CI
17tests](https://github.com/jgm/pandoc/workflows/CI%20tests/badge.svg)](https://github.com/jgm/pandoc/actions)
18[![license](https://img.shields.io/badge/license-GPLv2+-lightgray.svg)](https://www.gnu.org/licenses/gpl.html)
19[![pandoc-discuss on google
20groups](https://img.shields.io/badge/pandoc-discuss-red.svg?style=social)](https://groups.google.com/forum/#!forum/pandoc-discuss)
22The universal markup converter
23------------------------------
25Pandoc is a [Haskell](http://haskell.org) library for converting from
26one markup format to another, and a command-line tool that uses this
27library. It can convert *from*
29<div id="input-formats">
31- `bibtex` ([BibTeX](https://ctan.org/pkg/bibtex) bibliography)
32- `biblatex` ([BibLaTeX](https://ctan.org/pkg/biblatex) bibliography)
33- `commonmark` ([CommonMark](https://commonmark.org) Markdown)
34- `commonmark_x` ([CommonMark](https://commonmark.org) Markdown with
35 extensions)
36- `creole` ([Creole 1.0](http://www.wikicreole.org/wiki/Creole1.0))
37- `csljson` ([CSL
38 JSON](https://citeproc-js.readthedocs.io/en/latest/csl-json/markup.html)
39 bibliography)
40- `csv` ([CSV](https://tools.ietf.org/html/rfc4180) table)
41- `docbook` ([DocBook](https://docbook.org))
42- `docx` ([Word docx](https://en.wikipedia.org/wiki/Office_Open_XML))
43- `dokuwiki` ([DokuWiki markup](https://www.dokuwiki.org/dokuwiki))
44- `epub` ([EPUB](http://idpf.org/epub))
45- `fb2`
46 ([FictionBook2](http://www.fictionbook.org/index.php/Eng:XML_Schema_Fictionbook_2.1)
47 e-book)
48- `gfm` ([GitHub-Flavored
49 Markdown](https://help.github.com/articles/github-flavored-markdown/)),
50 or the deprecated and less accurate `markdown_github`; use
51 [`markdown_github`](https://pandoc.org/MANUAL.html#markdown-variants)
52 only if you need extensions not supported in
53 [`gfm`](https://pandoc.org/MANUAL.html#markdown-variants).
54- `haddock` ([Haddock
55 markup](https://www.haskell.org/haddock/doc/html/ch03s08.html))
56- `html` ([HTML](https://www.w3.org/html/))
57- `ipynb` ([Jupyter
58 notebook](https://nbformat.readthedocs.io/en/latest/))
59- `jats` ([JATS](https://jats.nlm.nih.gov) XML)
60- `jira`
61 ([Jira](https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=all)/Confluence
62 wiki markup)
63- `json` (JSON version of native AST)
64- `latex` ([LaTeX](https://www.latex-project.org/))
65- `markdown` ([Pandoc’s
66 Markdown](https://pandoc.org/MANUAL.html#pandocs-markdown))
67- `markdown_mmd`
68 ([MultiMarkdown](https://fletcherpenney.net/multimarkdown/))
69- `markdown_phpextra` ([PHP Markdown
70 Extra](https://michelf.ca/projects/php-markdown/extra/))
71- `markdown_strict` (original unextended
72 [Markdown](https://daringfireball.net/projects/markdown/))
73- `mediawiki` ([MediaWiki
74 markup](https://www.mediawiki.org/wiki/Help:Formatting))
75- `man` ([roff man](https://man.cx/groff_man(7)))
76- `muse` ([Muse](https://amusewiki.org/library/manual))
77- `native` (native Haskell)
78- `odt` ([ODT](https://en.wikipedia.org/wiki/OpenDocument))
79- `opml` ([OPML](http://dev.opml.org/spec2.html))
80- `org` ([Emacs Org mode](https://orgmode.org))
81- `rst`
82 ([reStructuredText](https://docutils.sourceforge.io/docs/ref/rst/introduction.html))
83- `t2t` ([txt2tags](https://txt2tags.org))
84- `textile` ([Textile](https://www.promptworks.com/textile))
85- `tikiwiki` ([TikiWiki
86 markup](https://doc.tiki.org/Wiki-Syntax-Text#The_Markup_Language_Wiki-Syntax))
87- `twiki` ([TWiki
88 markup](https://twiki.org/cgi-bin/view/TWiki/TextFormattingRules))
89- `vimwiki` ([Vimwiki](https://vimwiki.github.io))
91</div>
93It can convert *to*
95<div id="output-formats">
97- `asciidoc` ([AsciiDoc](https://www.methods.co.nz/asciidoc/)) or
98 `asciidoctor` ([AsciiDoctor](https://asciidoctor.org/))
99- `beamer` ([LaTeX beamer](https://ctan.org/pkg/beamer) slide show)
100- `commonmark` ([CommonMark](https://commonmark.org) Markdown)
101- `commonmark_x` ([CommonMark](https://commonmark.org) Markdown with
102 extensions)
103- `context` ([ConTeXt](https://www.contextgarden.net/))
104- `csljson` ([CSL
105 JSON](https://citeproc-js.readthedocs.io/en/latest/csl-json/markup.html)
106 bibliography)
107- `docbook` or `docbook4` ([DocBook](https://docbook.org) 4)
108- `docbook5` (DocBook 5)
109- `docx` ([Word docx](https://en.wikipedia.org/wiki/Office_Open_XML))
110- `dokuwiki` ([DokuWiki markup](https://www.dokuwiki.org/dokuwiki))
111- `epub` or `epub3` ([EPUB](http://idpf.org/epub) v3 book)
112- `epub2` (EPUB v2)
113- `fb2`
114 ([FictionBook2](http://www.fictionbook.org/index.php/Eng:XML_Schema_Fictionbook_2.1)
115 e-book)
116- `gfm` ([GitHub-Flavored
117 Markdown](https://help.github.com/articles/github-flavored-markdown/)),
118 or the deprecated and less accurate `markdown_github`; use
119 [`markdown_github`](https://pandoc.org/MANUAL.html#markdown-variants)
120 only if you need extensions not supported in
121 [`gfm`](https://pandoc.org/MANUAL.html#markdown-variants).
122- `haddock` ([Haddock
123 markup](https://www.haskell.org/haddock/doc/html/ch03s08.html))
124- `html` or `html5` ([HTML](https://www.w3.org/html/),
125 i.e. [HTML5](https://html.spec.whatwg.org/)/XHTML [polyglot
126 markup](https://www.w3.org/TR/html-polyglot/))
127- `html4` ([XHTML](https://www.w3.org/TR/xhtml1/) 1.0 Transitional)
128- `icml` ([InDesign
129 ICML](https://wwwimages.adobe.com/www.adobe.com/content/dam/acom/en/devnet/indesign/sdk/cs6/idml/idml-cookbook.pdf))
130- `ipynb` ([Jupyter
131 notebook](https://nbformat.readthedocs.io/en/latest/))
132- `jats_archiving` ([JATS](https://jats.nlm.nih.gov) XML, Archiving
133 and Interchange Tag Set)
134- `jats_articleauthoring` ([JATS](https://jats.nlm.nih.gov) XML,
135 Article Authoring Tag Set)
136- `jats_publishing` ([JATS](https://jats.nlm.nih.gov) XML, Journal
137 Publishing Tag Set)
138- `jats` (alias for `jats_archiving`)
139- `jira`
140 ([Jira](https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=all)/Confluence
141 wiki markup)
142- `json` (JSON version of native AST)
143- `latex` ([LaTeX](https://www.latex-project.org/))
144- `man` ([roff man](https://man.cx/groff_man(7)))
145- `markdown` ([Pandoc’s
146 Markdown](https://pandoc.org/MANUAL.html#pandocs-markdown))
147- `markdown_mmd`
148 ([MultiMarkdown](https://fletcherpenney.net/multimarkdown/))
149- `markdown_phpextra` ([PHP Markdown
150 Extra](https://michelf.ca/projects/php-markdown/extra/))
151- `markdown_strict` (original unextended
152 [Markdown](https://daringfireball.net/projects/markdown/))
153- `mediawiki` ([MediaWiki
154 markup](https://www.mediawiki.org/wiki/Help:Formatting))
155- `ms` ([roff ms](https://man.cx/groff_ms(7)))
156- `muse` ([Muse](https://amusewiki.org/library/manual)),
157- `native` (native Haskell),
158- `odt` ([OpenOffice text
159 document](https://en.wikipedia.org/wiki/OpenDocument))
160- `opml` ([OPML](http://dev.opml.org/spec2.html))
161- `opendocument` ([OpenDocument](http://opendocument.xml.org))
162- `org` ([Emacs Org mode](https://orgmode.org))
163- `pdf` ([PDF](https://www.adobe.com/pdf/))
164- `plain` (plain text),
165- `pptx`
166 ([PowerPoint](https://en.wikipedia.org/wiki/Microsoft_PowerPoint)
167 slide show)
168- `rst`
169 ([reStructuredText](https://docutils.sourceforge.io/docs/ref/rst/introduction.html))
170- `rtf` ([Rich Text
171 Format](https://en.wikipedia.org/wiki/Rich_Text_Format))
172- `texinfo` ([GNU Texinfo](https://www.gnu.org/software/texinfo/))
173- `textile` ([Textile](https://www.promptworks.com/textile))
174- `slideous` ([Slideous](https://goessner.net/articles/slideous/) HTML
175 and JavaScript slide show)
176- `slidy` ([Slidy](https://www.w3.org/Talks/Tools/Slidy2/) HTML and
177 JavaScript slide show)
178- `dzslides` ([DZSlides](http://paulrouget.com/dzslides/) HTML5 +
179 JavaScript slide show),
180- `revealjs` ([reveal.js](https://revealjs.com/) HTML5 + JavaScript
181 slide show)
182- `s5` ([S5](https://meyerweb.com/eric/tools/s5/) HTML and JavaScript
183 slide show)
184- `tei` ([TEI Simple](https://github.com/TEIC/TEI-Simple))
185- `xwiki` ([XWiki
186 markup](https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/XWikiSyntax/))
187- `zimwiki` ([ZimWiki
188 markup](https://zim-wiki.org/manual/Help/Wiki_Syntax.html))
189- the path of a custom Lua writer, see [Custom
190 writers](https://pandoc.org/MANUAL.html#custom-writers) below
192</div>
194Pandoc can also produce PDF output via LaTeX, Groff ms, or HTML.
196Pandoc’s enhanced version of Markdown includes syntax for tables,
197definition lists, metadata blocks, footnotes, citations, math, and much
198more. See the User’s Manual below under [Pandoc’s
199Markdown](https://pandoc.org/MANUAL.html#pandocs-markdown).
201Pandoc has a modular design: it consists of a set of readers, which
202parse text in a given format and produce a native representation of the
203document (an *abstract syntax tree* or AST), and a set of writers, which
204convert this native representation into a target format. Thus, adding an
205input or output format requires only adding a reader or writer. Users
206can also run custom pandoc filters to modify the intermediate AST (see
207the documentation for [filters](https://pandoc.org/filters.html) and
208[Lua filters](https://pandoc.org/lua-filters.html)).
210Because pandoc’s intermediate representation of a document is less
211expressive than many of the formats it converts between, one should not
212expect perfect conversions between every format and every other. Pandoc
213attempts to preserve the structural elements of a document, but not
214formatting details such as margin size. And some document elements, such
215as complex tables, may not fit into pandoc’s simple document model.
216While conversions from pandoc’s Markdown to all formats aspire to be
217perfect, conversions from formats more expressive than pandoc’s Markdown
218can be expected to be lossy.
220Installing
221----------
223Here’s [how to install pandoc](INSTALL.md).
225Documentation
226-------------
228Pandoc’s website contains a full [User’s
229Guide](https://pandoc.org/MANUAL.html). It is also available
230[here](MANUAL.txt) as pandoc-flavored Markdown. The website also
231contains some [examples of the use of
232pandoc](https://pandoc.org/demos.html) and a limited [online
233demo](https://pandoc.org/try).
235Contributing
236------------
238Pull requests, bug reports, and feature requests are welcome. Please
239make sure to read [the contributor guidelines](CONTRIBUTING.md) before
240opening a new issue.
242License
243-------
245© 2006-2020 John MacFarlane (jgm@berkeley.edu). Released under the
246[GPL](http://www.gnu.org/copyleft/gpl.html "GNU General Public License"),
247version 2 or greater. This software carries no warranty of any kind.
248(See COPYRIGHT for full copyright and warranty notices.)