2015-11-09 12:52:05 +00:00
|
|
|
# pandoc
|
|
|
|
|
2016-11-09 11:24:52 +00:00
|
|
|
> Convert documents between various formats.
|
2015-11-09 12:52:05 +00:00
|
|
|
|
2016-01-07 17:31:27 +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}}`
|
2016-11-09 11:24:52 +00:00
|
|
|
|
|
|
|
- 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}}`
|
|
|
|
|
2016-11-09 13:00:29 +00:00
|
|
|
- List all supported input formats:
|
2016-11-09 11:24:52 +00:00
|
|
|
|
2016-11-09 13:00:29 +00:00
|
|
|
`pandoc --list-input-formats`
|
|
|
|
|
|
|
|
- List all supported output formats:
|
|
|
|
|
|
|
|
`pandoc --list-output-formats`
|