micromark extension to support GitHub flavored markdown strikethrough (
like this). This syntax extension matches either the GFM spec (only two tildes work) or github.com (both one or two tildes, when they match, work).
This package provides the low-level modules for integrating with the micromark tokenizer and the micromark HTML compiler.
npm install micromark-extension-gfm-strikethrough
syntaxis the default export of this module,
htmlis available at
Support strikethrough (
like this). The export of
syntax is a function that can be called with options and returns an extension for the micromark parser (to tokenize strikethrough; can be passed in
extensions). The export of
html is an extension for the default HTML compiler (to compile as
<del> elements; can be passed in
Whether to support strikethrough with a single tilde (
true). Single tildes work on github.com, but are technically prohibited by the GFM spec.
remarkjs/remark— markdown processor powered by plugins
micromark/micromark— the smallest commonmark-compliant markdown parser that exists
syntax-tree/mdast-util-gfm-strikethrough— mdast utility to support strikethrough
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.