0.3.1 • Published 6 years ago

metalsmith-markdown-sections v0.3.1

Weekly downloads
46
License
MIT
Repository
github
Last release
6 years ago

metalsmith-markdown

A Metalsmith plugin to convert markdown files.

Installation

$ npm install metalsmith-markdown-sections

CLI Usage

Install via npm and then add the metalsmith-markdown key to your metalsmith.json plugins with any Marked options you want, like so:

{
  "plugins": {
    "metalsmith-markdown": {
      "smartypants": true,
      "gfm": true,
      "tables": true
    }
  }
}

Javascript Usage

Pass options to the markdown plugin and pass it to Metalsmith with the use method:

var markdown = require('metalsmith-markdown-sections');

metalsmith.use(markdown({
  smartypants: true,
  gfm: true,
  tables: true
}));

License

MIT