Convert markdown to pdf
Last updated 7 months ago by mattiash .
ISC · Original npm · Tarball · package.json
$ cnpm install @mattiash/markdown-pdf 
SYNC missed versions from official npm registry.


Takes markdown as input and generates a pdf file by printing it with puppeteer.


markdown-pdf README.md

Produces a README.md.pdf in the same directory as README.md


--style <filename>  Includes a custom stylesheet
--output <filename> Specify name of pdf file
--browser           Allow you to see the generated html in a browser
--paper <size>      Set the paper-size. Default A4. See puppeteer documentation for page.pdf()



Will replace the string @git:lastUpdated with the date that the file was last updated according to git log.


Will replace a string @def Figure X This is the caption with a proper caption and wrap the caption and the element above it in a div to keep them together and simplify styling. The syntax is @def <type> <id> <text>. Replaces the id with an incrementing counter per type.


Will replace a string @ref Figure X with the id used when @def Figure X was replaced. The type of the reference is case insensitive, but case will be preserved in the replaced text. I.e. @ref Figure X will be replaced with Figure 1 and @ref figure X will be replaced with figure 1.

Current Tags

  • 1.3.0                                ...           latest (7 months ago)

7 Versions

  • 1.3.0                                ...           7 months ago
  • 1.2.2                                ...           8 months ago
  • 1.2.1                                ...           8 months ago
  • 1.2.0                                ...           8 months ago
  • 1.1.0                                ...           8 months ago
  • 1.0.1                                ...           9 months ago
  • 1.0.0                                ...           9 months ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (7)
Dev Dependencies (5)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |