remark-lint rule to warn when Markdown references to undefined definitions are found. Current stable version: 5.0.2. Released as part of the remark-lint monorepo; patch updates follow release cadence of the monorepo. Differentiator: catches broken links in Markdown documents by ensuring all `[text][reference]` and `[text][]` references have a corresponding `[reference]: URL` definition. Supports options to allow shortcut references and custom allow-lists. Ships TypeScript types and is ESM-only from v5.
npm install remark-lint-no-undefined-referencesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up a unified pipeline to lint a Markdown file for undefined references, allowing shortcut links.
Use dynamic import() or require('...').default if using CommonJS.Set allowShortcutLink: true explicitly if you need the old behavior.
Upgrade Node.js to 16 or later.
Use remark-lint-no-undefined-references only for reference links; for other link checks use additional rules.
npm install remark-lint-no-undefined-references
Use `import remarkLintNoUndefinedReferences from 'remark-lint-no-undefined-references'` (no braces).