-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Description
Rule details
Warn when URLs are also defined identifiers.
What type of rule is this?
Warns about a potential problem
Example code
[Mercury](mercury) is the first planet from the sun.
[mercury]: https://example.com/mercury/
Prior Art
[remark-lint-no-reference-like-url](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-reference-like-url)
Participation
- I am willing to submit a pull request to implement this rule.
Additional comments
While full URLs for definition identifiers are okay ([https://example.com]: https://example.com), and what looks like an identifier could be an actual URL (text), the more common case is that, assuming a definition [alpha]: https://example.com, then a link text should instead have been [text][alpha].