unified

Project:rehypejs/rehype-minify

Package:rehype-remove-comments@3.0.0

  1. Dependencies:2·Dependents:4
  2. rehype plugin to remove comments (except conditional comments)
  1. unified 132
  2. hast 78
  3. rehype 74
  4. javascript 9
  5. src 2

rehype-remove-comments

Build Coverage Downloads Size Sponsors Backers Chat

Remove comments (except conditional comments).

When configured with force: true (default: false), conditional comments are also removed.

Install

npm:

npm install rehype-remove-comments

Example

In
<!--Hello-->
<!--[if IE 6]>OK<![endif]-->
Out
<!--[if IE 6]>OK<![endif]-->

Contribute

See contributing.md in rehypejs/.github for ways to get started. See support.md for ways to get help.

This project has a Code of Conduct. By interacting with this repository, organisation, or community you agree to abide by its terms.

License

MIT © Titus Wormer