tldr/pages/common/pandoc.md

20 lines
504 B
Markdown
Raw Normal View History

2015-11-09 12:52:05 +00:00
# pandoc
> Convert documents between various formats.
2015-11-09 12:52:05 +00:00
- Convert file to pdf (the output format is automatically determined from the output file's extension):
2015-11-09 12:52:05 +00:00
2015-11-25 07:51:55 +00:00
`pandoc {{input.md}} -o {{output.pdf}}`
- Convert a file to a specific output format (useful for when the extension alone is ambiguous):
`pandoc {{input.docx}} --to {{markdown_github}} -o {{output.md}}`
- List all supported input formats:
`pandoc --list-input-formats`
- List all supported output formats:
`pandoc --list-output-formats`