Skip to content

dracupid/md2pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Markdown to PDF

Convert markdown to rendered (by phantom) PDF file.

NPM version Deps Up to Date

Install

A global available phantomjs(>=1.8.1) is required, or you need to download one and add its path to PATH variable.

$ phantomjs -v # Ensure that phantomjs is available
$ npm i markdown2pdf -g

Usage

$ m2p <markdown file> [pdf file name]

Hmm, not so customizable by now..

For example

$ m2p readme.md
$ m2p readme.md intro.pdf

License

MIT

Acknowledgement

https://github.com/marcbachmann/node-html-pdf/