Skip to content

New Rule: no-duplicate-definitions #358

Open
@lumirlumir

Description

@lumirlumir

Rule details

Rule to warn when definition type identifiers are defined multiple times.

What type of rule is this?

Warns about a potential problem

Example code

<!-- OK -->

[mercury]: https://example.com/mercury/
[venus]: https://example.com/venus/

<!-- ERROR -->

[mercury]: https://example.com/mercury/
[mercury]: https://example.com/venus/

Participation

  • I am willing to submit a pull request to implement this rule.

Additional comments

Hello,

I would like to suggest a new rule called no-duplicate-definitions.

In Markdown, it’s possible to define the same definition identifier multiple times. However, this is usually a mistake, as it can lead to unintended or incorrect link, image references.

This rule is inspired by an existing one, remark-lint-no-duplicate-definitions.


If this suggestion is accepted, I’d be happy if you could assign it to me! I’ll make sure to complete it by May 14.

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