Turpan is a wrapped markdown renderer based on markdown-it and a lot of plugins.
- markdown-it-abbr
- markdown-it-container
- markdown-it-deflist
- markdown-it-emoji
- markdown-it-footnote
- markdown-it-implicit-figures
- markdown-it-imsize
- markdown-it-ins
- markdown-it-link-attributes
- markdown-it-mark
- markdown-it-sub
- markdown-it-sup
- markdown-it-task-lists
- markdown-it-toc-and-anchor
First, install it.
$ npm install -S turpan
Then require it in your script.
var md = require('turpan');
console.log(md.render('# Hello world'));
MIT