pandoc input.md -t pdf --pdf-engine=xelatex -o output.pdf

Category: Media & Conversion

pandoc input.md -t pdf --pdf-engine=xelatex -o output.pdf

Convert Markdown to PDF with XeLaTeX

Converts Markdown to PDF with the XeLaTeX engine, which handles Unicode and system fonts better than the default pdflatex. --pdf-engine=xelatex swaps the engine, and xelatex must be installed. Use -V mainfont='DejaVu Sans' to set fonts.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.