pandoc
Convert documents between various formats. More information: https://pandoc.org.
-
Convert file to PDF (the output format is determined by file extension):
pandoc {{input.md}} -o {{output.pdf}}
-
Force conversion to use a specific format:
pandoc {{input.docx}} --to {{gfm}} -o {{output.md}}
-
Convert to a standalone file with the appropriate headers/footers (for LaTeX, HTML, etc.):
pandoc {{input.md}} -s -o {{output.tex}}
-
List all supported input formats:
pandoc --list-input-formats
-
List all supported output formats:
pandoc --list-output-formats
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.