micromark-extension-gfm-tagfilter
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.
Install
npm:
npm install micromark-extension-gfm-tagfilter
API
html
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
).
Related
Contribute
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.
License
MIT © Titus Wormer