LinuxCommandLibrary

markdown2pdf

converts Markdown documents to PDF

TLDR

Convert Markdown to PDF

$ markdown2pdf [input.md] -o [output.pdf]
copy
Convert with custom CSS
$ markdown2pdf [input.md] --css [style.css] -o [output.pdf]
copy
Convert multiple files
$ markdown2pdf [file1.md] [file2.md] -o [output.pdf]
copy

SYNOPSIS

markdown2pdf [options] files...

DESCRIPTION

markdown2pdf converts Markdown documents to PDF. Renders Markdown with styling and creates print-ready PDF output. Supports custom CSS for formatting.

PARAMETERS

-o file

Output PDF file.
--css file
Custom CSS stylesheet.
--header text
Header text.
--footer text
Footer text.
--toc
Include table of contents.

SEE ALSO

pandoc(1), md2pdf(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community