[GH-ISSUE #399] New rule: link simplification #2181

Closed
opened 2026-03-07 20:05:19 +03:00 by kerem · 6 comments
Owner

Originally created by @mathbunnyru on GitHub (May 22, 2021).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/399

A link like this [https://github.com](https://github.com) can be easily simplified to <https://github.com>.
This way it's less code duplication and it is easier to read.

Originally created by @mathbunnyru on GitHub (May 22, 2021). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/399 A link like this `[https://github.com](https://github.com)` can be easily simplified to `<https://github.com>`. This way it's less code duplication and it is easier to read.
kerem 2026-03-07 20:05:19 +03:00
Author
Owner

@mathbunnyru commented on GitHub (May 24, 2021):

@DavidAnson could you please give me an example of the PR or commit, which adds a new feature similar to this one?
I will try to implement it, though I don't know Node.js at all (so it will take some time).

<!-- gh-comment-id:847294712 --> @mathbunnyru commented on GitHub (May 24, 2021): @DavidAnson could you please give me an example of the PR or commit, which adds a new feature similar to this one? I will try to implement it, though I don't know Node.js at all (so it will take some time).
Author
Owner

@DavidAnson commented on GitHub (May 24, 2021):

Here is the most recent one: https://github.com/DavidAnson/markdownlint/pull/224

There is a complicating factor here that there is a collection of link-related rule requests I would ultimately like to bundle into one rule. I do not blame you if you do not want to wade into that, but if you do I will probably be a little pickier than usual. Fair warning. :)

<!-- gh-comment-id:847391254 --> @DavidAnson commented on GitHub (May 24, 2021): Here is the most recent one: https://github.com/DavidAnson/markdownlint/pull/224 There is a complicating factor here that there is a collection of link-related rule requests I would ultimately like to bundle into one rule. I do not blame you if you do not want to wade into that, but if you do I will probably be a little pickier than usual. Fair warning. :)
Author
Owner

@mathbunnyru commented on GitHub (May 24, 2021):

Thanks for the warning 😂
I will take a look at what I can do.

<!-- gh-comment-id:847391938 --> @mathbunnyru commented on GitHub (May 24, 2021): Thanks for the warning 😂 I will take a look at what I can do.
Author
Owner

@Marcono1234 commented on GitHub (May 28, 2023):

For anyone looking to implement this, #753 contains a bit additional information and corner cases to consider.

<!-- gh-comment-id:1566141899 --> @Marcono1234 commented on GitHub (May 28, 2023): For anyone looking to implement this, #753 contains a bit additional information and corner cases to consider.
Author
Owner

@Marcono1234 commented on GitHub (Nov 12, 2023):

@DavidAnson, will this be fixed by the new rule MD054?

Though if I see it correctly, that new rule is only about allowing / disallowing certain link styles. But if I understand the author of this issue here correctly, the suggestion was to enforce a link style (autolink) depending on the link content, and not generally.

Or will that be tracked in #753 in the future? (technically that issue is a duplicate of this one here, but it covers more cases, including reference links)

<!-- gh-comment-id:1807203209 --> @Marcono1234 commented on GitHub (Nov 12, 2023): @DavidAnson, will this be fixed by the new [rule `MD054`](https://github.com/DavidAnson/markdownlint/blob/next/doc/md054.md)? Though if I see it correctly, that new rule is only about allowing / disallowing certain link styles. But if I understand the author of this issue here correctly, the suggestion was to enforce a link style (autolink) depending on the link content, and not generally. Or will that be tracked in #753 in the future? (technically that issue is a duplicate of this one here, but it covers more cases, including reference links)
Author
Owner

@DavidAnson commented on GitHub (Nov 12, 2023):

Agree this is more like 753. I expect to push changes that implement that tonight.

<!-- gh-comment-id:1807208478 --> @DavidAnson commented on GitHub (Nov 12, 2023): Agree this is more like 753. I expect to push changes that implement that tonight.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/markdownlint#2181
No description provided.