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
htmlis 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
remarkjs/remark— markdown processor powered by plugins
micromark/micromark— the smallest commonmark-compliant markdown parser that exists
syntax-tree/mdast-util-from-markdown— mdast parser using
micromarkto create mdast from markdown
syntax-tree/mdast-util-to-markdown— mdast serializer to create markdown from mdast
This project has a code of conduct. By interacting with this repository, organization, or community you agree to abide by its terms.