pandoc Command Examples

Convert documents between various formats. More information: https://pandoc.org/MANUAL.html.

pandoc {{path/to/input.md}} {{[-o|--output]}} {{path/to/output.pdf}}

pandoc {{path/to/input.md}} --pdf-engine {{tectonic|weasyprint|typst|...}} {{[-o|--output]}} {{path/to/output.pdf}}

pandoc {{path/to/input.md}} {{[-s|--standalone]}} {{[-o|--output]}} {{path/to/output.html}}

pandoc {{[-f|--from]}} {{docx|...}} {{path/to/input}} {{[-t|--to]}} {{pdf|...}} {{[-o|--output]}} {{path/to/output}}

pandoc {{path/to/input}} {{[-L|--lua-filter]}} {{path/to/filter.lua}} {{[-o|--output]}} {{path/to/output}}

pandoc --list-input-formats

pandoc --list-output-formats