@hackage pandoc3.5

Conversion between markup formats

<!-- Do not edit this file. It is generated automatically from README.template and MANUAL.txt via the command: pandoc --lua-filter tools/update-readme.lua README.template -o README.md --> <h1 id="pandoc">Pandoc</h1> <p><a href="https://github.com/jgm/pandoc/releases"><img src="https://img.shields.io/github/release/jgm/pandoc.svg?label=current+release" alt="githubrelease" /></a> <a href="https://hackage.haskell.org/package/pandoc"><img src="https://img.shields.io/hackage/v/pandoc.svg?label=hackage" alt="hackagerelease" /></a> <a href="https://formulae.brew.sh/formula/pandoc"><img src="https://img.shields.io/homebrew/v/pandoc.svg" alt="homebrew" /></a> <a href="https://www.stackage.org/lts/package/pandoc"><img src="https://stackage.org/package/pandoc/badge/lts" alt="stackage LTSpackage" /></a> <a href="https://github.com/jgm/pandoc/actions"><img src="https://github.com/jgm/pandoc/workflows/CI%20tests/badge.svg" alt="CItests" /></a> <a href="https://www.gnu.org/licenses/gpl.html"><img src="https://img.shields.io/badge/license-GPLv2+-lightgray.svg" alt="license" /></a> <a href="https://groups.google.com/forum/#!forum/pandoc-discuss"><img src="https://img.shields.io/badge/pandoc-discuss-red.svg?style=social" alt="pandoc-discuss on googlegroups" /></a></p> <h2 id="the-universal-markup-converter">The universal markup converter</h2> <p>Pandoc is a <a href="https://haskell.org">Haskell</a> library for converting from one markup format to another, and a command-line tool that uses this library.</p> <p>It can convert <em>from</em></p> <div id="input-formats"> <ul> <li><code>bibtex</code> (<a href="https://ctan.org/pkg/bibtex">BibTeX</a> bibliography) </li> <li><code>biblatex</code> (<a href="https://ctan.org/pkg/biblatex">BibLaTeX</a> bibliography) </li> <li><code>bits</code> (<a href="https://jats.nlm.nih.gov/extensions/bits/">BITS</a> XML, alias for <code>jats</code>) </li> <li><code>commonmark</code> (<a href="https://commonmark.org">CommonMark</a> Markdown) </li> <li><code>commonmark_x</code> (<a href="https://commonmark.org">CommonMark</a> Markdown with extensions) </li> <li><code>creole</code> (<a href="http://www.wikicreole.org/wiki/Creole1.0">Creole 1.0</a>) </li> <li><code>csljson</code> (<a href="https://citeproc-js.readthedocs.io/en/latest/csl-json/markup.html">CSL JSON</a> bibliography) </li> <li><code>csv</code> (<a href="https://tools.ietf.org/html/rfc4180">CSV</a> table) </li> <li><code>tsv</code> (<a href="https://www.iana.org/assignments/media-types/text/tab-separated-values">TSV</a> table) </li> <li><code>djot</code> (<a href="https://djot.net">Djot markup</a>) </li> <li><code>docbook</code> (<a href="https://docbook.org">DocBook</a>) </li> <li><code>docx</code> (<a href="https://en.wikipedia.org/wiki/Office_Open_XML">Word docx</a>) </li> <li><code>dokuwiki</code> (<a href="https://www.dokuwiki.org/dokuwiki">DokuWiki markup</a>) </li> <li><code>endnotexml</code> (<a href="https://support.clarivate.com/Endnote/s/article/EndNote-XML-Document-Type-Definition">EndNote XML bibliography</a>) </li> <li><code>epub</code> (<a href="http://idpf.org/epub">EPUB</a>) </li> <li><code>fb2</code> (<a href="http://www.fictionbook.org/index.php/Eng:XML_Schema_Fictionbook_2.1">FictionBook2</a> e-book) </li> <li><code>gfm</code> (<a href="https://help.github.com/articles/github-flavored-markdown/">GitHub-Flavored Markdown</a>), or the deprecated and less accurate <code>markdown_github</code>; use <a href="https://pandoc.org/MANUAL.html#markdown-variants"><code>markdown_github</code></a> only if you need extensions not supported in <a href="https://pandoc.org/MANUAL.html#markdown-variants"><code>gfm</code></a>. </li> <li><code>haddock</code> (<a href="https://www.haskell.org/haddock/doc/html/ch03s08.html">Haddock markup</a>) </li> <li><code>html</code> (<a href="https://www.w3.org/html/">HTML</a>) </li> <li><code>ipynb</code> (<a href="https://nbformat.readthedocs.io/en/latest/">Jupyter notebook</a>) </li> <li><code>jats</code> (<a href="https://jats.nlm.nih.gov">JATS</a> XML) </li> <li><code>jira</code> (<a href="https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=all">Jira</a>/Confluence wiki markup) </li> <li><code>json</code> (JSON version of native AST) </li> <li><code>latex</code> (<a href="https://www.latex-project.org/">LaTeX</a>) </li> <li><code>markdown</code> (<a href="https://pandoc.org/MANUAL.html#pandocs-markdown">Pandoc’s Markdown</a>) </li> <li><code>markdown_mmd</code> (<a href="https://fletcherpenney.net/multimarkdown/">MultiMarkdown</a>) </li> <li><code>markdown_phpextra</code> (<a href="https://michelf.ca/projects/php-markdown/extra/">PHP Markdown Extra</a>) </li> <li><code>markdown_strict</code> (original unextended <a href="https://daringfireball.net/projects/markdown/">Markdown</a>) </li> <li><code>mediawiki</code> (<a href="https://www.mediawiki.org/wiki/Help:Formatting">MediaWiki markup</a>) </li> <li><code>man</code> (<a href="https://man.cx/groff_man(7)">roff man</a>) </li> <li><code>muse</code> (<a href="https://amusewiki.org/library/manual">Muse</a>) </li> <li><code>native</code> (native Haskell) </li> <li><code>odt</code> (<a href="https://en.wikipedia.org/wiki/OpenDocument">OpenOffice text document</a>) </li> <li><code>opml</code> (<a href="http://dev.opml.org/spec2.html">OPML</a>) </li> <li><code>org</code> (<a href="https://orgmode.org">Emacs Org mode</a>) </li> <li><code>ris</code> (<a href="https://en.wikipedia.org/wiki/RIS_(file_format)">RIS</a> bibliography) </li> <li><code>rtf</code> (<a href="https://en.wikipedia.org/wiki/Rich_Text_Format">Rich Text Format</a>) </li> <li><code>rst</code> (<a href="https://docutils.sourceforge.io/docs/ref/rst/introduction.html">reStructuredText</a>) </li> <li><code>t2t</code> (<a href="https://txt2tags.org">txt2tags</a>) </li> <li><code>textile</code> (<a href="https://textile-lang.com">Textile</a>) </li> <li><code>tikiwiki</code> (<a href="https://doc.tiki.org/Wiki-Syntax-Text#The_Markup_Language_Wiki-Syntax">TikiWiki markup</a>) </li> <li><code>twiki</code> (<a href="https://twiki.org/cgi-bin/view/TWiki/TextFormattingRules">TWiki markup</a>) </li> <li><code>typst</code> (<a href="https://typst.app">typst</a>) </li> <li><code>vimwiki</code> (<a href="https://vimwiki.github.io">Vimwiki</a>) </li> <li>the path of a custom Lua reader, see <a href="https://pandoc.org/MANUAL.html#custom-readers-and-writers">Custom readers and writers</a> below </li> </ul> </div> <p>It can convert <em>to</em></p> <div id="output-formats"> <ul> <li><code>ansi</code> (text with <a href="https://en.wikipedia.org/wiki/ANSI_escape_code">ANSI escape codes</a>, for terminal viewing) </li> <li><code>asciidoc</code> (modern <a href="https://asciidoc.org/">AsciiDoc</a> as interpreted by <a href="https://asciidoctor.org/">AsciiDoctor</a>) </li> <li><code>asciidoc_legacy</code> (<a href="https://asciidoc.org/">AsciiDoc</a> as interpreted by <a href="https://github.com/asciidoc-py/asciidoc-py"><code>asciidoc-py</code></a>). </li> <li><code>asciidoctor</code> (deprecated synonym for <code>asciidoc</code>) </li> <li><code>beamer</code> (<a href="https://ctan.org/pkg/beamer">LaTeX beamer</a> slide show) </li> <li><code>bibtex</code> (<a href="https://ctan.org/pkg/bibtex">BibTeX</a> bibliography) </li> <li><code>biblatex</code> (<a href="https://ctan.org/pkg/biblatex">BibLaTeX</a> bibliography) </li> <li><code>chunkedhtml</code> (zip archive of multiple linked HTML files) </li> <li><code>commonmark</code> (<a href="https://commonmark.org">CommonMark</a> Markdown) </li> <li><code>commonmark_x</code> (<a href="https://commonmark.org">CommonMark</a> Markdown with extensions) </li> <li><code>context</code> (<a href="https://www.contextgarden.net/">ConTeXt</a>) </li> <li><code>csljson</code> (<a href="https://citeproc-js.readthedocs.io/en/latest/csl-json/markup.html">CSL JSON</a> bibliography) </li> <li><code>djot</code> (<a href="https://djot.net">Djot markup</a>) </li> <li><code>docbook</code> or <code>docbook4</code> (<a href="https://docbook.org">DocBook</a> 4) </li> <li><code>docbook5</code> (DocBook 5) </li> <li><code>docx</code> (<a href="https://en.wikipedia.org/wiki/Office_Open_XML">Word docx</a>) </li> <li><code>dokuwiki</code> (<a href="https://www.dokuwiki.org/dokuwiki">DokuWiki markup</a>) </li> <li><code>epub</code> or <code>epub3</code> (<a href="http://idpf.org/epub">EPUB</a> v3 book) </li> <li><code>epub2</code> (EPUB v2) </li> <li><code>fb2</code> (<a href="http://www.fictionbook.org/index.php/Eng:XML_Schema_Fictionbook_2.1">FictionBook2</a> e-book) </li> <li><code>gfm</code> (<a href="https://help.github.com/articles/github-flavored-markdown/">GitHub-Flavored Markdown</a>), or the deprecated and less accurate <code>markdown_github</code>; use <a href="https://pandoc.org/MANUAL.html#markdown-variants"><code>markdown_github</code></a> only if you need extensions not supported in <a href="https://pandoc.org/MANUAL.html#markdown-variants"><code>gfm</code></a>. </li> <li><code>haddock</code> (<a href="https://www.haskell.org/haddock/doc/html/ch03s08.html">Haddock markup</a>) </li> <li><code>html</code> or <code>html5</code> (<a href="https://www.w3.org/html/">HTML</a>, i.e. <a href="https://html.spec.whatwg.org/">HTML5</a>/XHTML <a href="https://www.w3.org/TR/html-polyglot/">polyglot markup</a>) </li> <li><code>html4</code> (<a href="https://www.w3.org/TR/xhtml1/">XHTML</a> 1.0 Transitional) </li> <li><code>icml</code> (<a href="https://manualzz.com/doc/9627253/adobe-indesign-cs6-idml-cookbook">InDesign ICML</a>) </li> <li><code>ipynb</code> (<a href="https://nbformat.readthedocs.io/en/latest/">Jupyter notebook</a>) </li> <li><code>jats_archiving</code> (<a href="https://jats.nlm.nih.gov">JATS</a> XML, Archiving and Interchange Tag Set) </li> <li><code>jats_articleauthoring</code> (<a href="https://jats.nlm.nih.gov">JATS</a> XML, Article Authoring Tag Set) </li> <li><code>jats_publishing</code> (<a href="https://jats.nlm.nih.gov">JATS</a> XML, Journal Publishing Tag Set) </li> <li><code>jats</code> (alias for <code>jats_archiving</code>) </li> <li><code>jira</code> (<a href="https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=all">Jira</a>/Confluence wiki markup) </li> <li><code>json</code> (JSON version of native AST) </li> <li><code>latex</code> (<a href="https://www.latex-project.org/">LaTeX</a>) </li> <li><code>man</code> (<a href="https://man.cx/groff_man(7)">roff man</a>) </li> <li><code>markdown</code> (<a href="https://pandoc.org/MANUAL.html#pandocs-markdown">Pandoc’s Markdown</a>) </li> <li><code>markdown_mmd</code> (<a href="https://fletcherpenney.net/multimarkdown/">MultiMarkdown</a>) </li> <li><code>markdown_phpextra</code> (<a href="https://michelf.ca/projects/php-markdown/extra/">PHP Markdown Extra</a>) </li> <li><code>markdown_strict</code> (original unextended <a href="https://daringfireball.net/projects/markdown/">Markdown</a>) </li> <li><code>markua</code> (<a href="https://leanpub.com/markua/read">Markua</a>) </li> <li><code>mediawiki</code> (<a href="https://www.mediawiki.org/wiki/Help:Formatting">MediaWiki markup</a>) </li> <li><code>ms</code> (<a href="https://man.cx/groff_ms(7)">roff ms</a>) </li> <li><code>muse</code> (<a href="https://amusewiki.org/library/manual">Muse</a>) </li> <li><code>native</code> (native Haskell) </li> <li><code>odt</code> (<a href="https://en.wikipedia.org/wiki/OpenDocument">OpenOffice text document</a>) </li> <li><code>opml</code> (<a href="http://dev.opml.org/spec2.html">OPML</a>) </li> <li><code>opendocument</code> (<a href="http://opendocument.xml.org">OpenDocument</a>) </li> <li><code>org</code> (<a href="https://orgmode.org">Emacs Org mode</a>) </li> <li><code>pdf</code> (<a href="https://www.adobe.com/pdf/">PDF</a>) </li> <li><code>plain</code> (plain text) </li> <li><code>pptx</code> (<a href="https://en.wikipedia.org/wiki/Microsoft_PowerPoint">PowerPoint</a> slide show) </li> <li><code>rst</code> (<a href="https://docutils.sourceforge.io/docs/ref/rst/introduction.html">reStructuredText</a>) </li> <li><code>rtf</code> (<a href="https://en.wikipedia.org/wiki/Rich_Text_Format">Rich Text Format</a>) </li> <li><code>texinfo</code> (<a href="https://www.gnu.org/software/texinfo/">GNU Texinfo</a>) </li> <li><code>textile</code> (<a href="https://textile-lang.com">Textile</a>) </li> <li><code>slideous</code> (<a href="https://goessner.net/articles/slideous/">Slideous</a> HTML and JavaScript slide show) </li> <li><code>slidy</code> (<a href="https://www.w3.org/Talks/Tools/Slidy2/">Slidy</a> HTML and JavaScript slide show) </li> <li><code>dzslides</code> (<a href="https://paulrouget.com/dzslides/">DZSlides</a> HTML5 + JavaScript slide show) </li> <li><code>revealjs</code> (<a href="https://revealjs.com/">reveal.js</a> HTML5 + JavaScript slide show) </li> <li><code>s5</code> (<a href="https://meyerweb.com/eric/tools/s5/">S5</a> HTML and JavaScript slide show) </li> <li><code>tei</code> (<a href="https://github.com/TEIC/TEI-Simple">TEI Simple</a>) </li> <li><code>typst</code> (<a href="https://typst.app">typst</a>) </li> <li><code>xwiki</code> (<a href="https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/XWikiSyntax/">XWiki markup</a>) </li> <li><code>zimwiki</code> (<a href="https://zim-wiki.org/manual/Help/Wiki_Syntax.html">ZimWiki markup</a>) </li> <li>the path of a custom Lua writer, see <a href="https://pandoc.org/MANUAL.html#custom-readers-and-writers">Custom readers and writers</a> below </li> </ul> </div> <p>Pandoc can also produce PDF output via LaTeX, Groff ms, or HTML.</p> <p>Pandoc’s enhanced version of Markdown includes syntax for tables, definition lists, metadata blocks, footnotes, citations, math, and much more. See the User’s Manual below under <a href="https://pandoc.org/MANUAL.html#pandocs-markdown">Pandoc’s Markdown</a>.</p> <p>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 (an <em>abstract syntax tree</em> or AST), 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. Users can also run custom pandoc filters to modify the intermediate AST (see the documentation for <a href="https://pandoc.org/filters.html">filters</a> and <a href="https://pandoc.org/lua-filters.html">Lua filters</a>).</p> <p>Because pandoc’s intermediate representation of a document is less expressive than many of the formats it converts between, one should not expect perfect conversions between every format and every other. Pandoc attempts to preserve the structural elements of a document, but not formatting details such as margin size. And some document elements, such as complex tables, may not fit into pandoc’s simple document model. While conversions from pandoc’s Markdown to all formats aspire to be perfect, conversions from formats more expressive than pandoc’s Markdown can be expected to be lossy.</p> <h2 id="installing">Installing</h2> <p>Here’s <a href="INSTALL.md">how to install pandoc</a>.</p> <h2 id="documentation">Documentation</h2> <p>Pandoc’s website contains a full <a href="https://pandoc.org/MANUAL.html">User’s Guide</a>. It is also available <a href="MANUAL.txt">here</a> as pandoc-flavored Markdown. The website also contains some <a href="https://pandoc.org/demos.html">examples of the use of pandoc</a> and a limited <a href="https://pandoc.org/try">online demo</a>.</p> <h2 id="contributing">Contributing</h2> <p>Pull requests, bug reports, and feature requests are welcome. Please make sure to read <a href="CONTRIBUTING.md">the contributor guidelines</a> before opening a new issue.</p> <h2 id="license">License</h2> <p>© 2006-2024 John MacFarlane (<a href="mailto:jgm@berkeley.edu">jgm@berkeley.edu</a>). Released under the <a href="https://www.gnu.org/licenses/old-licenses/gpl-2.0.html" title="GNU General Public License">GPL</a>, version 2 or greater. This software carries no warranty of any kind. (See COPYRIGHT for full copyright and warranty notices.)</p>