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:
parent
12182f2a52
commit
25bf74971a
1 changed files with 5 additions and 5 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue