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

markdown-html

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

Usage

markdown-pdf README.md

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

Options

--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()

Macros

git:lastUpdated

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

def

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.

ref

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 (20 days ago)

7 Versions

  • 1.3.0                                ...           20 days ago
  • 1.2.2                                ...           2 months ago
  • 1.2.1                                ...           2 months ago
  • 1.2.0                                ...           2 months ago
  • 1.1.0                                ...           2 months ago
  • 1.0.1                                ...           2 months ago
  • 1.0.0                                ...           2 months ago
Maintainers (1)
Downloads
Today 0
This Week 7
This Month 7
Last Day 7
Last Week 0
Last Month 10
Dependencies (7)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |