pandoc

Updated: 08 November 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

Produce a standalone HTML document with html, head and body tags

pandoc RAG-invoice.md -s -o RAG-invoice.html

Leave a comment