1.0.2 • Published 6 years ago

mkd2pdf v1.0.2

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

mkd2pdf

Renders markdown text in PDF using various renderers.

hit count npm version

Prerequisites

  • Node.js >= 9.0.0
  • One or more of the following software products:

Installing

mkdir mkd2pdf && cd mkd2pdf
npm install mkd2pdf
sudo npm link

Usage

mkd2pdf input.md output.pdf

Please refer to mkd2pdf --help for more information.

Example

lorem ipsum

Supported Renderers

RendererProsCons
Google ChromeFreeIntermittent errors, long startup timePage header and footer generation is disabled because of hardcoded contents (local file name, title and date)Does not generate bookmarksDoes not support metadataDoes not support auto hyphenation
PrinceStable and fastAdds a small logo to the first page of generated PDF files when used with free/non-commercial license.
WeasyPrint (Recommended)Open SourceA few HTML rendering shortcomings (should be fixed in 0.42.3)

Metadata mapping

You can specify metadata in markdown document, see example.md for an example.

PDFPrinceWeasyPrint
Titletitletitle
Authorauthorauthor
Subjectsubjectdescription
Keywordskeywordskeywords
Creatorgeneratorgenerator

License

This project is licensed under the MIT License

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.7.1

6 years ago

0.6.0

6 years ago

0.5.3

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago