[GH-ISSUE #1040] False positive with link-image-style rule (MD054) and { url_inline: false } #2447

Closed
opened 2026-03-07 20:07:50 +03:00 by kerem · 2 comments
Owner

Originally created by @regseb on GitHub (Nov 14, 2023).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1040

The link-image-style rule (MD054), with { url_inline: false } config, reports a false-positive issue to this link:

[link](https://example.com) 
Originally created by @regseb on GitHub (Nov 14, 2023). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1040 The [_link-image-style_](https://github.com/DavidAnson/markdownlint/blob/b709a2f/doc/md054.md) rule (MD054), with `{ url_inline: false }` config, reports a false-positive issue to this link: ```markdown [link](https://example.com) ```
kerem 2026-03-07 20:07:50 +03:00
Author
Owner

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

Darn, sorry about that! I'm not sure how that didn't get flagged by the various test scenarios I have. I will take a look tonight.

<!-- gh-comment-id:1810768550 --> @DavidAnson commented on GitHub (Nov 14, 2023): Darn, sorry about that! I'm not sure how that didn't get flagged by the various test scenarios I have. I will take a look tonight.
Author
Owner

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

OK, it looks like the tests for this scenario are very focused on what conditions should fire the warning and not at all focused on ensuring the text matches the link. My bad.

<!-- gh-comment-id:1810774643 --> @DavidAnson commented on GitHub (Nov 14, 2023): OK, it looks like the tests for this scenario are very focused on what conditions should fire the warning and not at all focused on ensuring the text matches the link. My bad.
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#2447
No description provided.