markdown-it-html
v1.0.0
Published
<!--! <div class="title"> !-->
Downloads
308
Readme
markdown-it-html
It is a markdown-it plugin, use special html comments to render real html tag in markdown.
Run npm run test
see the test result.
It is use for write normal markdown file but render in a complex page.
option
var md = require('markdown-it')({
// enable html
html: true
})
md.use(require('markdown-it-html')({
// regex of html comment, default is match
// <!--!<div class="test">!--> then
// extract <div class="test">.
re: /<!--!([^]*?)!-->/g
}))