Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 587 Bytes

convert-markdown-to-pdf.md

File metadata and controls

26 lines (16 loc) · 587 Bytes

Convert Markdown To PDF

Category: Nodejs

You can convert Markdown to PDF in Node.js using the md-to-pdf package. The steps here will install the package globally for use at the command line.

Install md-to-pdf globally:

yarn global add md-to-pdf

Convert from Markdown to PDF at the command line:

md-to-pdf /path/to/input.md

Alternatively, pass from stdin and pipe to stdout into a target file:

cat input.md | md-to-pdf > /path/to/output.pdf

See md-to-pdf on Github for more details.