pandoc: add example (#2483)

italian
kalebo 2018-10-24 16:46:08 -06:00 committed by Muhammad Falak R Wani
parent 8ad9792a96
commit bfc713630f
1 changed files with 6 additions and 2 deletions

View File

@ -2,14 +2,18 @@
> Convert documents between various formats.
- Convert file to pdf (the output format is automatically determined from the output file's extension):
- Convert file to pdf (the output format is determined by file extension):
`pandoc {{input.md}} -o {{output.pdf}}`
- Convert a file to a specific output format (useful for when the extension alone is ambiguous):
- Force conversion to use a specific format:
`pandoc {{input.docx}} --to {{markdown_github}} -o {{output.md}}`
- Convert to a standalone file with the appropriate headers/footers (for LaTeX, HTML, etc.):
`pandoc {{input.md}} -s -o {{output.tex}}`
- List all supported input formats:
`pandoc --list-input-formats`