diff --git a/pages/common/pandoc.md b/pages/common/pandoc.md index cdda73900a..d82fb3a53a 100644 --- a/pages/common/pandoc.md +++ b/pages/common/pandoc.md @@ -1,19 +1,19 @@ # pandoc > Convert documents between various formats. -> More information: . +> More information: . - 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: