1.0.0 • Published 6 years ago

markdown-it-html v1.0.0

Weekly downloads
2
License
MIT
Repository
-
Last release
6 years ago

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
}))