Back to Explore

syntax-tree/mdast-util-gfm-strikethrough

GitHub
2 watchersOpen source

Last release:

mdast-util-gfm-strikethrough is an mdast extension that parses and serializes GitHub Flavored Markdown (GFM) strikethrough syntax. It provides extensions for mdast-util-from-markdown (to parse ~~strikethrough~~ into an mdast node) and mdast-util-to-markdown (to turn those nodes back into markdown), useful when you already use that mdast parsing and serialization pipeline.

Project status

  • The source appears to be in maintenance mode, with the most recent published updates being 2.0.0 on 2023-07-10, which is over two years ago relative to today (2026-06-09). However, there is evidence of a recent upstream push on 2026-06-03, so it may be active behind the scenes.
  • Apparent update cadence is sporadic historically: 1.0.3 and 2.0.0 are both in 2023, but there are multi-year gaps between earlier versions (for example, the prior versions before 2023 are from 2022-2020).

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • 2.0.0

    Version 2.0.0 refactors the GFM strikethrough plugin to align with newer unified ecosystem conventions and updates core dependencies. The primary documented API change is that `gfmStrikethroughFromMarkdown` and `gfmStrikethroughToMarkdown` are now callable extension factories rather than exported extension objects, and Node.js 16 is required.

    BreakingFeatures
  • 1.0.3

    Release 1.0.3 is primarily described as documentation and code-style refactoring, plus a tsconfig update. The diff shows a larger internal restructuring: implementation moved into a new lib/index.js, new TypeScript declarations were added, and the markdown serialization logic changed the mdast-util-to-markdown construct name used during serialization.

  • 1.0.2

    Release 1.0.2 updates the GFM strikethrough serialization behavior to avoid escaping the tilde (~) in select “safe” phrasing constructs (mostly around links and link titles). It also includes substantial README improvements and bumps a couple of dev-related dependencies used by the project.

  • 1.0.1

    Release 1.0.1 claims to add support for position tracking. The code changes show the strikethrough serializer was updated to use mdast-util-to-markdown's position tracking helpers and the package bumped mdast-util-to-markdown to a newer version.

    Features
  • 1.0.0

    Version 1.0.0 primarily converts the package to ESM and adds JSDoc-based typing. The implementation changes are concentrated in index.js, where the strikethrough from-markdown and to-markdown extensions are now exported as named ESM exports.

    Breaking
  • 0.2.3

    Release 0.2.3 primarily updates the mdast-util-to-markdown dependency. The code diff also shows additional tooling and CI changes, plus README badge updates, with no application/library source changes.

  • 0.2.2

    Release 0.2.2 updates the underlying markdown serialization tooling dependency and makes small documentation tweaks. The release notes only mention updating `mdast-util-to-markdown`, but the actual diff shows additional dependency updates and one new dev dependency.

  • 0.2.1

    Release 0.2.1 primarily bumps the `mdast-util-to-markdown` dependency (and related tooling deps) from their 0.2.0-era ranges to newer versions. The repository’s own change surface in this release is minimal, but the tests indicate a user-visible serialization behavior change.

  • 0.2.0

    Release 0.2.0 updates this package’s markdown serialization dependency and refreshes the documentation and tests for the micromark strikethrough extension. Code changes are small, but they indicate an integration change in how `micromark-extension-gfm-strikethrough` is consumed.

  • 0.1.0

    Release 0.1.0 is published, but the provided release notes contain no substantive information about changes. No developer-relevant details about features, fixes, breaking changes, or migration steps are available from this data.