[GH-ISSUE #268] Conflicting rules: no-reversed-links and no-bare-urls #230

Closed
opened 2026-03-03 01:24:54 +03:00 by kerem · 1 comment
Owner

Originally created by @arvigeus on GitHub (Mar 25, 2020).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/268

This:

(Incorrect link syntax)[https://www.example.com/]

Gets corrected to this:

(Incorrect link syntax)[<https://www.example.com/]>

I think bare-urls should not attempt to fix it in this case.

Originally created by @arvigeus on GitHub (Mar 25, 2020). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/268 This: ```md (Incorrect link syntax)[https://www.example.com/] ``` Gets corrected to this: ```md (Incorrect link syntax)[<https://www.example.com/]> ``` I think `bare-urls` should not attempt to fix it in this case.
kerem 2026-03-03 01:24:54 +03:00
Author
Owner

@DavidAnson commented on GitHub (Mar 25, 2020):

The rules detect and report independently. When attempting to fix both at once, the library will not apply overlapping edits and so the first fix it sees “wins”.

That said, I may be able to detect this scenario and maybe not report it as a bare URL to avoid this scenario? I’m not sure I love that option; I will think about this some more.

<!-- gh-comment-id:603637971 --> @DavidAnson commented on GitHub (Mar 25, 2020): The rules detect and report independently. When attempting to fix both at once, the library will not apply overlapping edits and so the first fix it sees “wins”. That said, I may be able to detect this scenario and maybe not report it as a bare URL to avoid this scenario? I’m not sure I love that option; I will think about this some more.
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#230
No description provided.