1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-24 20:35:26 +02:00

pandoc: update page (#14422)

This commit is contained in:
Fazle Arefin 2024-10-28 16:46:08 +11:00 committed by GitHub
parent 12182f2a52
commit 25bf74971a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,19 +1,19 @@
# pandoc
> Convert documents between various formats.
> More information: <https://pandoc.org>.
> More information: <https://pandoc.org/MANUAL.html>.
- Convert file to PDF (the output format is determined by file extension):
`pandoc {{input.md}} -o {{output.pdf}}`
`pandoc {{path/to/input.md}} {{-o|--output}} {{path/to/output.pdf}}`
- Convert to a standalone file with the appropriate headers/footers (for LaTeX, HTML, etc.):
`pandoc {{input.md}} -s -o {{output.html}}`
`pandoc {{path/to/input.md}} {{-s|--standalone}} {{-o|--output}} {{path/to/output.html}}`
- Force conversion to use a specific format:
- Manually specify format detection and conversion (overriding automatic format detection using filename extension or when filename extension is missing altogether):
`pandoc {{input.docx}} --to {{gfm}} -o {{output.md}}`
`pandoc {{-f|-r|--from|--read}} {{docx|...}} {{path/to/input}} {{-t|-w|--to|--write}} {{pdf|...}} {{-o|--output}} {{path/to/output}}`
- List all supported input formats: