[GH-ISSUE #467] Feature Request - Suppress MD033 Violations #385

Closed
opened 2026-03-03 01:26:27 +03:00 by kerem · 2 comments
Owner

Originally created by @elibroftw on GitHub (Dec 18, 2021).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/467

I use HTML in my project's README.md for things like links with images and images in the header. I would like a way to suppress the warnings the linter gives me.
For example

<a href=https://youtu.be/5xwHkLPgvtQ>
  <img width=75% src="https://img.youtube.com/vi/5xwHkLPgvtQ/maxresdefault.jpg" alt="demo YouTube video thumbnail" align="center"/>
</a>

Gives me inline HTML errors but me using an Image inside an a tag should not give any such violations.
So the best thing would be to not spout out violations for HTML where there is an img tag nested within another tag.

Originally created by @elibroftw on GitHub (Dec 18, 2021). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/467 I use HTML in my project's `README.md` for things like links with images and images in the header. I would like a way to suppress the warnings the linter gives me. For example ```html <a href=https://youtu.be/5xwHkLPgvtQ> <img width=75% src="https://img.youtube.com/vi/5xwHkLPgvtQ/maxresdefault.jpg" alt="demo YouTube video thumbnail" align="center"/> </a> ``` Gives me inline HTML errors but me using an Image inside an a tag should not give any such violations. So the best thing would be to not spout out violations for HTML where there is an `img` tag nested within another tag.
kerem 2026-03-03 01:26:27 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@DavidAnson commented on GitHub (Dec 18, 2021):

This library supports inline suppression as shown here: https://github.com/DavidAnson/markdownlint#configuration

You're probably using this library through a tool; they support additional ways to suppress (for example, with a file): https://github.com/DavidAnson/markdownlint#related

<!-- gh-comment-id:997290390 --> @DavidAnson commented on GitHub (Dec 18, 2021): This library supports inline suppression as shown here: https://github.com/DavidAnson/markdownlint#configuration You're probably using this library through a tool; they support additional ways to suppress (for example, with a file): https://github.com/DavidAnson/markdownlint#related
Author
Owner

@elibroftw commented on GitHub (Dec 18, 2021):

Works. Thanks

<!-- gh-comment-id:997290740 --> @elibroftw commented on GitHub (Dec 18, 2021): Works. Thanks
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#385
No description provided.