[GH-ISSUE #436] MD009 inside multi line code span #365

Closed
opened 2026-03-03 01:26:15 +03:00 by kerem · 1 comment
Owner

Originally created by @TjeuKayim on GitHub (Oct 6, 2021).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/436

I expected that this markdown passes the linting successfully:

`foo
<bar/>`

However, markdownlint produced this warning MD033/no-inline-html: Inline HTML

This is not consistent with how single line code spans are parsed. For example, this does not trigger MD003:

`foo<bar/>`
Originally created by @TjeuKayim on GitHub (Oct 6, 2021). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/436 I expected that this markdown passes the linting successfully: ```md `foo <bar/>` ``` However, markdownlint produced this warning `MD033/no-inline-html: Inline HTML` This is not consistent with how single line code spans are parsed. For example, this does not trigger MD003: ```md `foo<bar/>` ```
kerem 2026-03-03 01:26:15 +03:00
Author
Owner

@DavidAnson commented on GitHub (Oct 6, 2021):

Demo example: https://dlaa.me/markdownlint/#%25m%23%20Issue%20436%0A%0A%60foo%0A%3Cbar%2F%3E%60%0A

<!-- gh-comment-id:935547689 --> @DavidAnson commented on GitHub (Oct 6, 2021): Demo example: https://dlaa.me/markdownlint/#%25m%23%20Issue%20436%0A%0A%60foo%0A%3Cbar%2F%3E%60%0A
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#365
No description provided.