remark-lint rule to warn when shortcut reference images are used in Markdown. Shortcut references like ![text] look similar to plain text and can cause ambiguity; this rule enforces the use of collapsed or full reference images ([text][] or [text][reference]) to improve clarity. Current version is 4.0.1, part of the remark-lint monorepo. Releases follow semver; breaking changes may occur with major version bumps. This package is ESM-only, ships TypeScript types, and is recommended for consistent reference image syntax.
npm install remark-lint-no-shortcut-reference-imageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Lint a Markdown string for shortcut reference images using the unified ecosystem. The rule warns, does not modify.
Switch to ESM (import/export) or use dynamic import: const module = await import('remark-lint-no-shortcut-reference-image');Use default import: import remarkLintNoShortcutReferenceImage from 'remark-lint-no-shortcut-reference-image';
Do not pass options; simply use .use(remarkLintNoShortcutReferenceImage).
Follow recommendations to use collapsed or full references.
Use import or dynamic import: const remarkLintNoShortcutReferenceImage = (await import('remark-lint-no-shortcut-reference-image')).default;Use the package as a unified plugin: .use(remarkLintNoShortcutReferenceImage).
Run npm install remark-lint-no-shortcut-reference-image.