metalsmith-markdown
A Metalsmith plugin to convert markdown files.
Installation
$ npm install metalsmith-markdown
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:
Javascript Usage
Pass options
to the markdown plugin and pass it to Metalsmith with the use
method:
var markdown = ;var highlighter = ; metalsmith;
Custom Renderer
metalsmith-markdown
uses marked
, so to create a custom renderer get an instance of marked.Renderer()
var markdown = ;var marked = ;var markdownRenderer = ; markdownRenderer {return ` <figure> <img src="" alt="" title="" /> <figcaption> <p></p> </figcaption> </figure>`;}; metalsmith;
History
License
MIT