{"id":26284,"library":"remark-lint-strong-marker","title":"remark-lint-strong-marker","description":"A remark-lint rule that warns when strong (bold) markers are inconsistent. Version 4.0.1 is the latest stable release (ESM-only, Node.js 16+). It enforces a consistent style for strong markers (`*` or `_`) or auto-detects the first style used. Part of the remark-lint ecosystem with presets like `remark-preset-lint-consistent`. Ships TypeScript declarations. Has no runtime dependencies beyond remark-lint.","status":"active","version":"4.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/remarkjs/remark-lint#main","tags":["javascript","importance","lint","marker","remark","remark-lint","remark-lint-rule","rule","strong","typescript"],"install":[{"cmd":"npm install remark-lint-strong-marker","lang":"bash","label":"npm"},{"cmd":"yarn add remark-lint-strong-marker","lang":"bash","label":"yarn"},{"cmd":"pnpm add remark-lint-strong-marker","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM-only since v3; CommonJS require is not supported.","wrong":"const remarkLintStrongMarker = require('remark-lint-strong-marker')","symbol":"remarkLintStrongMarker","correct":"import remarkLintStrongMarker from 'remark-lint-strong-marker'"},{"note":"TypeScript type export for marker style ('*' | '_'). Use type import to avoid runtime overhead.","symbol":"Marker","correct":"import type { Marker } from 'remark-lint-strong-marker'"},{"note":"TypeScript type export for plugin options (Marker or 'consistent').","symbol":"Options","correct":"import type { Options } from 'remark-lint-strong-marker'"}],"quickstart":{"code":"import remarkLint from 'remark-lint'\nimport remarkLintStrongMarker from 'remark-lint-strong-marker'\nimport remarkParse from 'remark-parse'\nimport remarkStringify from 'remark-stringify'\nimport {read} from 'to-vfile'\nimport {unified} from 'unified'\nimport {reporter} from 'vfile-reporter'\n\nconst file = await read('example.md')\n\nawait unified()\n  .use(remarkParse)\n  .use(remarkLint)\n  .use(remarkLintStrongMarker)\n  .use(remarkStringify)\n  .process(file)\n\nconsole.error(reporter(file))","lang":"typescript","description":"Checks strong markers in example.md, reporting any inconsistent use."},"warnings":[{"fix":"Use import syntax (ESM). For CommonJS projects, use dynamic import: const m = await import('remark-lint-strong-marker')","message":"Package is ESM-only; using require() throws an error.","severity":"breaking","affected_versions":">=3.0.0"},{"fix":"Ensure .use(remarkParse).use(remarkLint).use(remarkLintStrongMarker).use(remarkStringify) order","message":"The plugin must be used after remarkParse and before remarkStringify. Incorrect order causes no linting.","severity":"gotcha","affected_versions":"all"},{"message":"No deprecated versions known; rule remains stable.","severity":"deprecated","affected_versions":"none"},{"fix":"Specify options explicitly: .use(remarkLintStrongMarker, '*') or .use(remarkLintStrongMarker, '_')","message":"If no defaults are set, the rule uses 'consistent' mode: warns when a strong marker differs from the first used style.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use separate remark-lint rules for emphasis markers (e.g., remark-lint-emphasis-marker).","message":"The rule only checks strong markers, not emphasis or other formatting.","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade Node.js to version 16 or later.","message":"Node.js version requirement changed from 12 to 16.","severity":"breaking","affected_versions":">=3.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run: npm install remark-lint-strong-marker","cause":"Package not installed or not in node_modules.","error":"Cannot find module 'remark-lint-strong-marker'"},{"fix":"Switch to ESM imports as shown above, or use dynamic import.","cause":"Using CommonJS require() in an ESM-only package.","error":"SyntaxError: Unexpected token 'export'"},{"fix":"Add .use(remarkParse) before .use(remarkLintStrongMarker).","cause":"The plugin is used before the remark parser.","error":"TypeError: Cannot read properties of undefined (reading 'type')"},{"fix":"Use '*' or '_' as the option value.","cause":"Invalid option value: strong markers must be single `*` or `_`, not `**`.","error":"Expected a `Marker` but got `'**'`"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}