mratin / docker-pandoc

Pandoc packaged in Docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Pandoc packaged in Docker

License:The Unlicense


Languages

Language:Makefile 100.0%