Project: micromark/micromark-extension-gfm-tagfilter

Package: micromark-extension-gfm-tagfilter@0.3.0

  1. Dependencies: 0·Dependents: 1
  2. micromark extension to support GFM tagfilter
  1. unified 169
  2. markdown 142
  3. html 110
  4. gfm 18
  5. micromark 16
  6. micromark-extension 16
  7. filter 5
  8. tagfilter 3
  9. tag 2


Build Coverage Downloads Size Sponsors Backers Chat

micromark extension to support GitHub flavored markdown tag filter. This syntax extension matches the GFM spec and github.com. The tag filter is a rather naïve attempt at XSS protection. It’s much better to use a proper HTML sanitizing algorithm.

This package provides the low-level modules for integrating with the micromark tokenizer and the micromark HTML compiler.



npm install micromark-extension-gfm-tagfilter



Note: html is the default export.

Support a tag filter (protection against script, plaintext, etc). The export is an extension for the default HTML compiler (to escape certain tag names; can be passed in htmlExtensions).


See contributing.md in micromark/.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, organization, or community you agree to abide by its terms.


MIT © Titus Wormer