markdown2pdf

Convert markdown to PDF.

Usage no npm install needed!

<script type="module">
  import markdown2pdf from 'https://cdn.skypack.dev/markdown2pdf';
</script>

README

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/