1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-03-28 21:16:20 +01:00
tldr/pages/common/pandoc.md
Matt Broberg 224243de56 pandoc: update markdown example (#3521)
Updating based on warning from Pandoc: `[WARNING] Deprecated: markdown_github. Use gfm instead.`
2019-11-01 00:30:01 +01:00

591 B

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