Short description
pandoc(from,to,input_file,output_file)
precise the input format (markdown, docbook, html,...)
It can convert from
commonmark
(CommonMark
Markdown)
creole
(Creole
1.0)
csv
(CSV
table)
docbook
(DocBook)
docx
(Word
docx)
dokuwiki
(DokuWiki
markup)
epub
(EPUB)
fb2
(FictionBook2
e-book)
gfm
(GitHub-Flavored
Markdown), or the deprecated and less accurate
markdown_github
; use
markdown_github
only if you need extensions not supported in
gfm
.
haddock
(Haddock
markup)
html
(HTML)
ipynb
(Jupyter
notebook)
jats
(JATS XML)
jira
(Jira
wiki markup)
json
(JSON version of native AST)
latex
(LaTeX)
markdown
(Pandoc’s
Markdown)
markdown_mmd
(MultiMarkdown)
markdown_phpextra
(PHP
Markdown Extra)
markdown_strict
(original unextended
Markdown)
mediawiki
(MediaWiki
markup)
man
(roff man)
muse
(Muse)
native
(native Haskell)
odt
(ODT)
opml
(OPML)
org
(Emacs
Org mode)
rst
(reStructuredText)
t2t
(txt2tags)
textile
(Textile)
tikiwiki
(TikiWiki
markup)
twiki
(TWiki
markup)
vimwiki
(Vimwiki)
precise the output format (html, doc, ppt, ...)
It can convert to
asciidoc
(AsciiDoc)
or asciidoctor
(AsciiDoctor)
beamer
(LaTeX beamer
slide show)
commonmark
(CommonMark
Markdown)
context
(ConTeXt)
docbook
or docbook4
(DocBook 4)
docbook5
(DocBook 5)
docx
(Word
docx)
dokuwiki
(DokuWiki
markup)
epub
or epub3
(EPUB v3 book)
epub2
(EPUB v2)
fb2
(FictionBook2
e-book)
gfm
(GitHub-Flavored
Markdown), or the deprecated and less accurate
markdown_github
; use
markdown_github
only if you need extensions not supported in
gfm
.
haddock
(Haddock
markup)
html
or html5
(HTML,
i.e. HTML5/XHTML
polyglot
markup)
html4
(XHTML 1.0
Transitional)
icml
(InDesign
ICML)
ipynb
(Jupyter
notebook)
jats_archiving
(JATS XML,
Archiving and Interchange Tag Set)
jats_articleauthoring
(JATS XML,
Article Authoring Tag Set)
jats_publishing
(JATS XML,
Journal Publishing Tag Set)
jats
(alias for
jats_archiving
)
jira
(Jira
wiki markup)
json
(JSON version of native AST)
latex
(LaTeX)
man
(roff man)
markdown
(Pandoc’s
Markdown)
markdown_mmd
(MultiMarkdown)
markdown_phpextra
(PHP
Markdown Extra)
markdown_strict
(original unextended
Markdown)
mediawiki
(MediaWiki
markup)
ms
(roff ms)
muse
(Muse),
native
(native Haskell),
odt
(OpenOffice
text document)
opml
(OPML)
opendocument
(OpenDocument)
org
(Emacs
Org mode)
pdf
(PDF)
plain
(plain text),
pptx
(PowerPoint
slide show)
rst
(reStructuredText)
rtf
(Rich
Text Format)
texinfo
(GNU
Texinfo)
textile
(Textile)
slideous
(Slideous
HTML and JavaScript slide show)
slidy
(Slidy
HTML and JavaScript slide show)
dzslides
(DZSlides
HTML5 + JavaScript slide show),
revealjs
(reveal.js HTML5 +
JavaScript slide show)
s5
(S5
HTML and JavaScript slide show)
tei
(TEI
Simple)
xwiki
(XWiki
markup)
zimwiki
(ZimWiki
markup)
the path of a custom Lua writer, see Custom writers below
Pandoc can also produce PDF output via LaTeX, Groff ms, or HTML.
give the path to the input file
give the path to the output file
This is a simple wrapping of the command line tool Pandoc available here: https://pandoc.org/