markdown-it-inline-comments

1.0.1 • Public • Published

markdown-it-inline-comments

Build Status NPM version Coverage Status

Center text plugin for markdown-it markdown parser.

v1.+ requires markdown-it v4.+, see changelog.

Removes HTML comments <!-- like this --> => Removes HTML comments

Install

node.js, browser:

npm install markdown-it-inline-comments --save
bower install markdown-it-inline-comments --save

Use

var md = require('markdown-it')()
            .use(require('markdown-it-inline-comments'));
 
md.render('<!-- comments -->') // => ''
 

The widgetparams can be used to determine what kind of html widget should be rendered in the output container.

Differences in browser. If you load script directly into the page, without package system, module will add itself globally as window.markdownitInlineComments.

License

MIT

Package Sidebar

Install

npm i markdown-it-inline-comments

Weekly Downloads

1,485

Version

1.0.1

License

MIT

Last publish

Collaborators

  • jay-hodgson
  • xschildwachter
  • agendel
  • nickgros
  • roccbot