Skip to content

New Rule: no-reference-like-url #419

@TKDev7

Description

@TKDev7

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].

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Ready to Implement

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions