{"library":"remark-lint-no-reference-like-url","title":"remark-lint-no-reference-like-url","description":"remark-lint rule that warns when URLs are also defined identifiers, helping catch likely broken references in Markdown. Current version 4.0.1, part of the remark-lint monorepo. ESM-only, requires Node.js 16+. No presets include it; use as a standalone lint rule. Differentiates from other lint rules by focusing on the specific pattern of resource links that should be reference links to avoid ambiguity.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install remark-lint-no-reference-like-url"],"cli":null},"imports":["import remarkLintNoReferenceLikeUrl from 'remark-lint-no-reference-like-url'",".use(remarkLintNoReferenceLikeUrl)","const remarkLintNoReferenceLikeUrl = require('remark-lint-no-reference-like-url')"],"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 remarkLintNoReferenceLikeUrl from 'remark-lint-no-reference-like-url';\nimport { reporter } from 'vfile-reporter';\n\nconst file = await unified()\n  .use(remarkParse)\n  .use(remarkLint)\n  .use(remarkLintNoReferenceLikeUrl)\n  .use(remarkStringify)\n  .process('[**Mercury**](mercury) is the first planet from the sun.\\n\\n[mercury]: https://example.com/mercury/');\n\nconsole.error(reporter(file));","lang":"typescript","description":"Demonstrates how to use the rule to lint Markdown and detect resource links that look like references.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}