[GH-ISSUE #75] Add rule to enforce image alt text. #1906

Closed
opened 2026-03-07 20:02:39 +03:00 by kerem · 3 comments
Owner

Originally created by @sstedman on GitHub (Oct 10, 2017).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/75

Add a rule to detect and throw error for empty image alt text:

![](/path/to/image)

Add corresponding tags for image (and accessibility?).

Originally created by @sstedman on GitHub (Oct 10, 2017). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/75 Add a rule to detect and throw error for empty image alt text: ``` ![](/path/to/image) ``` Add corresponding tags for `image` (and `accessibility`?).
kerem 2026-03-07 20:02:39 +03:00
Author
Owner

@DavidAnson commented on GitHub (Oct 10, 2017):

The new rule makes sense, thanks!

However, I do not think I understand your last sentence. Can you explain, please?

For reference: http://spec.commonmark.org/0.28/#images

<!-- gh-comment-id:335521953 --> @DavidAnson commented on GitHub (Oct 10, 2017): The new rule makes sense, thanks! However, I do not think I understand your last sentence. Can you explain, please? For reference: http://spec.commonmark.org/0.28/#images
Author
Owner

@sstedman commented on GitHub (Oct 10, 2017):

Super, thanks!

Regarding the last sentence: if it makes sense, I thought this rule could also use some new tags that don't yet exist in the https://github.com/DavidAnson/markdownlint#tags list.

<!-- gh-comment-id:335528496 --> @sstedman commented on GitHub (Oct 10, 2017): Super, thanks! Regarding the last sentence: if it makes sense, I thought this rule could also use some new tags that don't yet exist in the https://github.com/DavidAnson/markdownlint#tags list.
Author
Owner

@DavidAnson commented on GitHub (Oct 10, 2017):

Understood, good idea!

<!-- gh-comment-id:335528938 --> @DavidAnson commented on GitHub (Oct 10, 2017): Understood, good idea!
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#1906
No description provided.