[GH-ISSUE #1623] MD059 False positive when descriptive title is provided separately to non-descriptive link text #722

Closed
opened 2026-03-03 01:29:21 +03:00 by kerem · 1 comment
Owner

Originally created by @hwoodiwiss on GitHub (Jun 2, 2025).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1623

With the addition of MD059, I'm seeing errors on a link that does use one of the prohibited texts, however, the link also has separately provided alt-text that gets rendered as the Title attribute of the <a> tag.

The example in question is:

[here](https://raw.githubusercontent.com/justeattakeaway/httpclient-interception/main/src/HttpClientInterception/Bundles/http-request-bundle-schema.json "JSON Schema for HTTP request interception bundles for use with JustEat.HttpClientInterception.").

Which renders to here.

I think in this case, MD059 wouldn't apply as I believe screen readers should read the link title.

Originally created by @hwoodiwiss on GitHub (Jun 2, 2025). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1623 With the addition of MD059, I'm seeing errors on a link that does use one of the prohibited texts, however, the link also has separately provided alt-text that gets rendered as the Title attribute of the `<a>` tag. The example in question is: ```md [here](https://raw.githubusercontent.com/justeattakeaway/httpclient-interception/main/src/HttpClientInterception/Bundles/http-request-bundle-schema.json "JSON Schema for HTTP request interception bundles for use with JustEat.HttpClientInterception."). ``` Which renders to [here](https://raw.githubusercontent.com/justeattakeaway/httpclient-interception/main/src/HttpClientInterception/Bundles/http-request-bundle-schema.json "JSON Schema for HTTP request interception bundles for use with JustEat.HttpClientInterception."). I think in this case, MD059 wouldn't apply as I believe screen readers should read the link title.
kerem closed this issue 2026-03-03 01:29:22 +03:00
Author
Owner

@nschonni commented on GitHub (Jun 2, 2025):

No, here is a random article that explains the difference https://www.accessibilitychecker.org/guides/alt-text/

<!-- gh-comment-id:2931060373 --> @nschonni commented on GitHub (Jun 2, 2025): No, here is a random article that explains the difference https://www.accessibilitychecker.org/guides/alt-text/
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#722
No description provided.