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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    66
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    66

Package Sidebar

Install

npm i markdown-it-html

Weekly Downloads

66

Version

1.0.0

License

MIT

Unpacked Size

2.77 kB

Total Files

5

Last publish

Collaborators

  • mikuscallion