mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00

piping --help to the head command, as mentioned in #1072, isn't necessary anymore (in fact, doing that doesn't work at all now) See https://github.com/jgm/pandoc/commit/273d90b
19 lines
504 B
Markdown
19 lines
504 B
Markdown
# pandoc
|
|
|
|
> Convert documents between various formats.
|
|
|
|
- Convert file to pdf (the output format is automatically determined from the output file's extension):
|
|
|
|
`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`
|