[GH-ISSUE #1643] MD045 - Images should have alternate text -> not always #727

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

Originally created by @keryanS on GitHub (Jun 19, 2025).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1643

An image should not have an alternative when the image is illustrative. In HTML the alt is required but can be empty (alt="").

Consider having an empty field :

[](my-image.jpg)
Originally created by @keryanS on GitHub (Jun 19, 2025). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1643 An image should not have an alternative when the image is illustrative. In HTML the alt is required but can be empty (alt=""). Consider having an empty field : ```mardown [](my-image.jpg) ```
kerem 2026-03-03 01:29:24 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@DavidAnson commented on GitHub (Jun 19, 2025):

If that's your scenario, you can disable the rule for that line, section, file, or project.

<!-- gh-comment-id:2988578604 --> @DavidAnson commented on GitHub (Jun 19, 2025): If that's your scenario, you can disable the rule for that line, section, file, or project.
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#727
No description provided.