Skip to content

Pandoc

Document converter

Installation in Termux

pkg install pandoc

Usage

Coverting a markdown file to a html fragment (without header and styles):

pandoc input.md -t html -o output.html

Converting to PDF (requires weasyprint):

pandoc input.md -o output.pdf --pdfengine=weasyprint