mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-23 09:15:24 +02:00
markdown2pdf: add page (#16714)
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
This commit is contained in:
parent
adfbd70d17
commit
8682b590a2
1 changed files with 20 additions and 0 deletions
20
pages/common/markdown2pdf.md
Normal file
20
pages/common/markdown2pdf.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# markdown2pdf
|
||||
|
||||
> Convert markdown to PDF.
|
||||
> More information: <https://github.com/theiskaa/markdown2pdf>.
|
||||
|
||||
- Convert a Markdown file to a PDF:
|
||||
|
||||
`markdown2pdf {{[-p|--path]}} {{path/to/input_file.md}}`
|
||||
|
||||
- Convert a Markdown file to a PDF with a specific path:
|
||||
|
||||
`markdown2pdf {{[-p|--path]}} {{path/to/input_file.md}} {{[-o|--output]}} {{path/to/output_file.pdf}}`
|
||||
|
||||
- Convert Markdown content provided as a string:
|
||||
|
||||
`markdown2pdf {{[-s|--string]}} {{markdown_text}} {{[-o|--output]}} {{path/to/output_file.pdf}}`
|
||||
|
||||
- Convert from URL (this will convert a Markdown file at that URL to a local PDF file):
|
||||
|
||||
`markdown2pdf {{[-u|--url]}} {{URL}} {{[-o|--output]}} {{path/to/output_file.pdf}}`
|
Loading…
Add table
Reference in a new issue