turpan
v0.4.4
Published
a wrapped markdown render based on Markdown-it
Downloads
76
Readme
Turpan is a wrapped markdown renderer based on markdown-it and a lot of its plugins.
- markdown-it-abbr
- markdown-it-block-embed
- markdown-it-container
- markdown-it-deflist
- markdown-it-emoji
- markdown-it-emphasis-alt
- markdown-it-footnote
- markdown-it-implicit-figures
- markdown-it-imsize
- markdown-it-ins
- markdown-it-katex
- markdown-it-link-attributes
- markdown-it-mark
- markdown-it-sub
- markdown-it-sup
- markdown-it-task-lists
- markdown-it-toc-and-anchor
- markdown-it-image-lazy-loading
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