0.1.0 • Published 8 years ago

snarky v0.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

Snarky

Build Status styled with prettier

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