remark-lint rule to enforce consistent GFM strikethrough markers (one tilde vs two). Current stable version is 3.0.1, ESM-only, requires Node.js 16+. Part of the remark-lint monorepo, ships TypeScript definitions. Unopinionated: default 'consistent' detects the first style and warns on deviations. Unlike general Markdown linting, this specifically targets the strikethrough marker count, a common source of inconsistency when using remark-gfm.
npm install remark-lint-strikethrough-markerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Lint an MD file with remark-lint-strikethrough-marker enforcing two-tilde style, including GFM and reporter.
Switch to ESM, use import syntax, or upgrade Node.js to 16+.
Manually add the plugin to your remark-lint configuration.
Ensure .use(remarkGfm) is called before the lint rule.
Use import type { Marker, Options } from 'remark-lint-strikethrough-marker'.Add .use(remarkGfm) before .use(remarkLintStrikethroughMarker).
Use import syntax or set type: module in package.json.
Use import remarkLintStrikethroughMarker from 'remark-lint-strikethrough-marker' (default import).