1234567891011121314151617181920212223242526272829303132333435 |
- # .txt to .html
- pandoc -o output.html input.txt
- pandoc -s -o output.html input.txt
- # .html to Markdown
- pandoc -f html -t markdown file.html
- # Markdown to .html
- pandoc -o file.html file.md
- # RMarkdown to .html
- pandoc -o file.html file.Rmd
- # markdown to latex
- pandoc -o output.tex input.txt
- # .txt to .pdf (production of a PDF requires that a LaTeX engine be installed)
- pandoc input.txt -o output.pdf
- --verbose
- --version # print version
- --help # show usage message
- --preserve-tabs # preserve tabs instead of converting them to spaces (the default)
- --tab-stop=NUMBER # specify the number of spaces per tab (default is 4)
- --extract-media=DIR #
- --dpi=NUMBER # specify the dpi (dots per inch) (default is 96dpi)
- --no-highlight # disables syntax highlighting for code bloks and inlines
- --hightlight-style=STYLE # specifies the coloring style to be used in source code
- --html-q-tags # use <q> tags for quotes in HTML
- --ascii # use only ascii characters in output (only for HTML output)
- --reference-links # use reference-style links, rather than inline links
- # To get a complete list of supported programming languages, you can run the command
- pandoc --list-highlight-languages
|