markdown-document

Converts markdown files to PDF documents using HTML templates.

NPM Version NPM Downloads

Getting started

Using npm

  1. Install markdown-document using the following command:
    npm init
    npm install --save markdown-document
    
  2. Create your document
    echo # My first markdown-document > document.md
    
  3. (Optional) configure document properties using document.json
  4. Build PDF file:
    ./node_-_modules/.bin/markdown-document
    

Using yarn

  1. Install markdown-document using the following command:
    yarn add markdown-document --save
    
  2. Create your document
    echo # My first markdown-document > document.md
    
  3. (Optional) configure document properties using document.json
  4. Build PDF file:
    yarn markdown-document generate
    

Documentation

See the docs directory for detailed documentation.

License

MIT