Disallow URLs that match defined reference identifiers.
In Markdown, you can create links using either inline syntax [text](url) or reference syntax [text][id] with a separate definition [id]: url. This rule encourages the use of reference syntax when a link's URL matches an existing reference identifier.
For example, if you have a definition like [mercury]: https://example.com/mercury/, then using [text](mercury) should be written as [text][mercury] instead.
Please note that autofix is not performed for links or images that include a title. For example:
[Mercury](mercury "The planet Mercury")
This rule flags URLs that match defined reference identifiers.
Examples of incorrect code for this rule:
<!-- eslint markdown/no-reference-like-urls: "error" -->
[**Mercury**](mercury) is the first planet from the sun.
.
[mercury]: https://example.com/mercury/
[venus]: https://example.com/venus.jpgExamples of correct code for this rule:
<!-- eslint markdown/no-reference-like-urls: "error" -->
[**Mercury**][mercury] is the first planet from the sun.
![**Venus** is a planet][venus].
[mercury]: https://example.com/mercury/
[venus]: https://example.com/venus.jpgIf you prefer inline link syntax even when reference definitions are available, or if you're working in an environment where reference syntax is not preferred, you can safely disable this rule.