{"library":"remark-lint-no-shortcut-reference-image","title":"remark-lint-no-shortcut-reference-image","description":"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.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install remark-lint-no-shortcut-reference-image"],"cli":null},"imports":["import remarkLintNoShortcutReferenceImage from 'remark-lint-no-shortcut-reference-image'","const remarkLintNoShortcutReferenceImage = require('remark-lint-no-shortcut-reference-image')","import remarkLintNoShortcutReferenceImage from 'remark-lint-no-shortcut-reference-image'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { unified } from 'unified';\nimport remarkParse from 'remark-parse';\nimport remarkStringify from 'remark-stringify';\nimport remarkLint from 'remark-lint';\nimport remarkLintNoShortcutReferenceImage from 'remark-lint-no-shortcut-reference-image';\nimport { reporter } from 'vfile-reporter';\n\nconst file = await unified()\n  .use(remarkParse)\n  .use(remarkLint)\n  .use(remarkLintNoShortcutReferenceImage)\n  .use(remarkStringify)\n  .process('![bad reference]\\n\\n[bad reference]: https://example.com/image.png');\n\nconsole.log(reporter(file));\n// Output: 1:1-1:16: Unexpected shortcut reference image (`![text]`), expected collapsed reference (`![text][]`)","lang":"typescript","description":"Lint a Markdown string for shortcut reference images using the unified ecosystem. The rule warns, does not modify.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}