Project: micromark/micromark-extension-gfm-strikethrough

Package: micromark-extension-gfm-strikethrough@0.6.5

  1. Dependencies: 1·Dependents: 3
  2. micromark extension to support GFM strikethrough
  1. unified 169
  2. markdown 142
  3. gfm 18
  4. micromark 16
  5. micromark-extension 16
  6. strikethrough 4
  7. delete 3
  8. strike 2
  9. through 2
  10. del 2
  11. deletion 2


Build Coverage Downloads Size Sponsors Backers Chat

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.

You probably shouldn’t use this package directly, but instead use mdast-util-gfm-strikethrough with mdast.



npm install micromark-extension-gfm-strikethrough




Note: syntax is the default export of this module, html is available at micromark-extension-gfm-strikethrough/html.

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 htmlExtensions).


Whether to support strikethrough with a single tilde (boolean, default: true). Single tildes work on github.com, but are technically prohibited by the GFM spec.


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