Updated: 07 October 2026
Convert a markdown file to a pdf
pandoc input.md -o output.pdf
Convert a markdown file to a pdf, with Docker
docker run --rm --volume "`pwd`:/data" --user `id -u`:`id -g` pandoc/latex README.md -o README.pdf
Convert a .docx file to ePUB format, adding a table of contents
pandoc input.docx -o output.epub --toc