snarky
v0.1.0
Published
Extends `snarkdown` and exposes a Promise API
Downloads
1
Maintainers
Readme
Snarky
Extends
snarkdown
and exposes a Promise API
NOTE: Plugin support in upcoming release :tada:
Install
npm install --save snarky
or if you're using yarn,
yarn add snarky
Usage
const snarky = require('snarky');
snarky(`**bold text**`).then(html => {
console.log(html);
// <strong>bold text</strong>
})
API
snarky(markdown)
Returns a Promise for HTML from parsed markdown
snarky.sync(markdown)
Returns HTML from parsed markdown
License
MIT © Yatharth Khatri