mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
27 lines
665 B
Markdown
27 lines
665 B
Markdown
# `MD033` - Inline HTML
|
|
|
|
Tags: `html`
|
|
|
|
Aliases: `no-inline-html`
|
|
|
|
Parameters:
|
|
|
|
- `allowed_elements`: Allowed elements (`string[]`, default `[]`)
|
|
|
|
This rule is triggered whenever raw HTML is used in a Markdown document:
|
|
|
|
```markdown
|
|
<h1>Inline HTML heading</h1>
|
|
```
|
|
|
|
To fix this, use 'pure' Markdown instead of including raw HTML:
|
|
|
|
```markdown
|
|
# Markdown heading
|
|
```
|
|
|
|
Note: To allow specific HTML elements, use the `allowed_elements` parameter.
|
|
|
|
Rationale: Raw HTML is allowed in Markdown, but this rule is included for
|
|
those who want their documents to only include "pure" Markdown, or for those
|
|
who are rendering Markdown documents into something other than HTML.
|