$ npm install remarked
Markdown parser and lexer. A fork of marked.js maintained for Assemble.
npm i remarked --save
Minimal usage:
var markdown = require('remarked');
console.log(markdown('I am using **remarked**.'));
//=> <p>I am using <strong>remarked</strong>.</p>
Define remarked options with:
remarked.setOptions({})
```js
var remarked = require('remarked');
remarked.setOptions({
renderer: new remarked.Renderer(),
gfm: true,
tables: true,
breaks: false,
pedantic: false,
sanitize: true,
smartLists: true,
smartypants: false
});
console.log(remarked('I am using **remarked**.'));
Assemble used marked.js extensively, but - for a couple of reasons - we've decided to maintain a fork so that our users can have a more reliable experience going forward.
Jon Schlinkert
Copyright (c) 2014 Jon Schlinkert, contributors.
Based on marked https://github.com/chjj/marked Copyright (c) 2011-2014, Christopher Jeffrey, contributors. Released under the MIT License (MIT)
This file was generated by verb-cli on July 04, 2014.
© 2010 - cnpmjs.org x YWFE | Home | YWFE