Skip to content

markdownlint: whitelist only the specific HTML elements that are necessary for your project  #416

@jbampton

Description

@jbampton

medium

Disabling MD033 (no-inline-html) entirely is discouraged as it allows arbitrary HTML to be mixed with Markdown, which can lead to inconsistent formatting and reduced maintainability. Instead of a global disable, it is a better practice to whitelist only the specific HTML elements that are necessary for your project (such as <br>, <details>, or <summary>).

# MD033/no-inline-html Inline HTML
MD033:
  allowed_elements: [ "br", "details", "summary" ]

Originally posted by @gemini-code-assist[bot] in #415 (comment)

Metadata

Metadata

Type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions