[GH-ISSUE #426] Rules MD041 and MD033 aren't compatible with default configuration #355

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

Originally created by @lorenzogrv on GitHub (Sep 9, 2021).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/426

As per example at your documentation of rule MD041, the following should work:

<h1 align="center"><img src="https://placekitten.com/300/150"/></h1>

This is a file with a top-level HTML heading

But that example doesn't work as the rule MD033 does not allow inline html.

Shouldn't it work with the default configuration values?

Originally created by @lorenzogrv on GitHub (Sep 9, 2021). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/426 As per example at your documentation of rule [MD041](https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md041), the following should work: ```markdown <h1 align="center"><img src="https://placekitten.com/300/150"/></h1> This is a file with a top-level HTML heading ``` But that example doesn't work as the rule [MD033](https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md041) does not allow inline html. Shouldn't it work with the default configuration values?
kerem 2026-03-03 01:26:00 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@nschonni commented on GitHub (Sep 9, 2021):

The default would be to use a # for an H1 or a frontmatter title, so there is not conflict with the default configuration.

<!-- gh-comment-id:916070376 --> @nschonni commented on GitHub (Sep 9, 2021): The default would be to use a `#` for an H1 or a frontmatter title, so there is not conflict with the default configuration.
Author
Owner

@lorenzogrv commented on GitHub (Sep 14, 2021):

@nschonni , @DavidAnson Thanks for clarification. Will close as I consider it is resolved.

<!-- gh-comment-id:918991966 --> @lorenzogrv commented on GitHub (Sep 14, 2021): @nschonni , @DavidAnson Thanks for clarification. Will close as I consider it is resolved.
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#355
No description provided.