Linux command
markdown2pdf 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Convert Markdown to PDF
markdown2pdf [input.md] -o [output.pdf]
Convert with custom CSS
markdown2pdf [input.md] --css [style.css] -o [output.pdf]
Convert multiple files
markdown2pdf [file1.md] [file2.md] -o [output.pdf]
说明
markdown2pdf converts Markdown documents to PDF. Renders Markdown with styling and creates print-ready PDF output. Supports custom CSS for formatting.
参数
- -o _file_
- Output PDF file.
- --css _file_
- Custom CSS stylesheet.
- --header _text_
- Header text.
- --footer _text_
- Footer text.
- --toc
- Include table of contents.
FAQ
What is the markdown2pdf command used for?
markdown2pdf converts Markdown documents to PDF. Renders Markdown with styling and creates print-ready PDF output. Supports custom CSS for formatting.
How do I run a basic markdown2pdf example?
Run `markdown2pdf [input.md] -o [output.pdf]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -o _file_ do in markdown2pdf?
Output PDF file.