Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.54 KB

README.md

File metadata and controls

37 lines (29 loc) · 1.54 KB

Turpan is a wrapped markdown renderer based on markdown-it and a lot of plugins.

How to use

First, install it.

$ npm install -S turpan

Then require it in your script.

var md = require('turpan');
console.log(md.render('# Hello world'));
// <h1 id="hello-world">Hello world <a class="markdownIt-Anchor" href="#hello-world">#</a></h1>

License

MIT