markdown-it-html

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i markdown-it-html

Weekly Downloads

49

Version

1.0.0

License

MIT

Unpacked Size

2.77 kB

Total Files

5

Last publish

Collaborators

  • mikuscallion