mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-26 01:36:03 +03:00
[GH-ISSUE #399] New rule: link simplification #2181
Labels
No labels
bug
enhancement
enhancement
enhancement
fixed in next
fixed in next
fixed in next
new rule
new rule
new rule
pull-request
question
refactoring
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/markdownlint#2181
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@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).
@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. :)
@mathbunnyru commented on GitHub (May 24, 2021):
Thanks for the warning 😂
I will take a look at what I can do.
@Marcono1234 commented on GitHub (May 28, 2023):
For anyone looking to implement this, #753 contains a bit additional information and corner cases to consider.
@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)
@DavidAnson commented on GitHub (Nov 12, 2023):
Agree this is more like 753. I expect to push changes that implement that tonight.