A remark-lint rule to check the marker value of ordered lists in Markdown. Current version 4.0.1, part of the remark-lint ecosystem, released as needed. It enforces one of three styles: 'one' (all markers must be 1), 'ordered' (sequential increment), or 'single' (same as first). The default 'consistent' infers style from the first two-item list. Works with unified, ESM-only. Commonly used in lint presets like remark-preset-lint-consistent.
npm install remark-lint-ordered-list-marker-valueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates using remark-lint-ordered-list-marker-value with unified, parsing Markdown, linting with 'ordered' style, and outputting the result.
Switch to ESM imports (import statement) or downgrade to v3 if CJS is required.
Explicitly set style to 'one', 'ordered', or 'single' to avoid unexpected inference.
Upgrade Node.js to 16 or later.
Ensure your environment or bundler supports ESM.
Replace require() with import statement or use dynamic import().
Ensure you pass the plugin function directly to unified().use(), e.g., .use(remarkLintOrderedListMarkerValue, 'ordered').
Run npm install remark-lint-ordered-list-marker-value and ensure node_modules is accessible.