Renders markdown text in PDF using various renderers.
- Node.js >= 9.0.0
- One or more of the following software products:
- Google Chrome >= 65.0.0
- Prince >= 11.0
- WeasyPrint >= 0.42.2
mkdir mkd2pdf && cd mkd2pdf
npm install mkd2pdf
sudo npm link
mkd2pdf input.md output.pdf
Please refer to mkd2pdf --help
for more information.
Renderer | Pros | Cons |
---|---|---|
Google Chrome |
|
|
Prince |
|
|
WeasyPrint (Recommended) |
|
|
You can specify metadata in markdown document, see example.md for an example.
Prince | WeasyPrint | |
---|---|---|
Title | title | title |
Author | author | author |
Subject | subject | description |
Keywords | keywords | keywords |
Creator | generator | generator |
This project is licensed under the MIT License