remark-lint rule to warn when emphasis markers (asterisks vs underscores) violate a given or consistent style. Current stable version is 4.0.1, ESM-only, requires Node.js 16+. Part of the unified/remark ecosystem, ships TypeScript types. Integrates with remark-lint presets like `remark-preset-lint-consistent` and `remark-preset-lint-markdown-style-guide`. Distributed as a scoped package on npm. Includes CLI support via remark CLI.
npm install remark-lint-emphasis-markerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Lint emphasis markers in a Markdown file, enforcing asterisks as the preferred marker.
Use import syntax and ensure Node.js 16+. If you must use CommonJS, stick with v3.x.
Specify the desired marker explicitly to avoid unexpected behavior: .use(remarkLintEmphasisMarker, '*')
Update TypeScript usage to only use '*' | '_' | 'consistent'.
Use only '*' or '_' for emphasis markers in Markdown content.
Switch to import syntax: import remarkLintEmphasisMarker from 'remark-lint-emphasis-marker';
Ensure correct usage: unified().use(remarkLintEmphasisMarker, '*'). The function is a plugin, not a standalone linter.
Install remark-lint: npm install remark-lint