Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions pages/common/pandoc.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

`pandoc {{path/to/input.md}} {{[-o|--output]}} {{path/to/output.pdf}}`

- Convert a Markdown file to PDF using the specified PDF engine:
- Convert the output from another command to PDF, using a specific PDF engine:

`pandoc {{path/to/input.md}} --pdf-engine {{tectonic|weasyprint|typst|...}} {{[-o|--output]}} {{path/to/output.pdf}}`
`{{command}} | pandoc {{[-f|--from]}} {{input_format}} --pdf-engine {{tectonic|weasyprint|typst|...}} {{[-o|--output]}} {{path/to/output.pdf}}`

- Convert to a standalone file with the appropriate headers/footers (for LaTeX, HTML, etc.):

Expand All @@ -23,6 +23,10 @@

`pandoc {{path/to/input}} {{[-L|--lua-filter]}} {{path/to/filter.lua}} {{[-o|--output]}} {{path/to/output}}`

- Convert a remote HTML file to markdown and print the result to `stdout`:

`pandoc {{[-f|--from]}} html {{[-t|--to]}} markdown {{https://example.com}}`

- List all supported input formats:

`pandoc --list-input-formats`
Expand Down