Sign inSign up

tomologic/pandoc

By tomologic

Updated almost 10 years ago

Pandoc in Docker (pandocker)

Image
0

2.0K

tomologic/pandoc repository overview

Pandoc in Docker

docker run tomologic/pandoc

pandoc [OPTIONS] [FILES]
Input formats:  commonmark, docbook, docx, epub, haddock, html, json*, latex,
            markdown, markdown_github, markdown_mmd, markdown_phpextra,
            markdown_strict, mediawiki, native, odt, opml, org, rst, t2t,
            textile, twiki
            [ *only Pandoc's JSON version of native AST]
Output formats: asciidoc, beamer, commonmark, context, docbook, docx, dokuwiki,
            dzslides, epub, epub3, fb2, haddock, html, html5, icml, json*,
            latex, man, markdown, markdown_github, markdown_mmd,
            markdown_phpextra, markdown_strict, mediawiki, native, odt,
            opendocument, opml, org, pdf**, plain, revealjs, rst, rtf, s5,
            slideous, slidy, tei, texinfo, textile
            [**for pdf output, use latex or beamer and -o FILENAME.pdf]

A /source directory is created in the container, which can be mapped for use with relative file paths. Pandoc will always be run from the /source directory in the container.

docker run -v `pwd`:/source tomologic/pandoc -f markdown -t html5 infile.md -o outfile.html

Docker container will generate files owned by root.

Tag summary

Content type

Image

Digest

Size

626.7 MB

Last updated

almost 10 years ago

docker pull tomologic/pandoc