no-inline-html
What it does
Section titled “What it does”Reports raw HTML in a document, on each tag of inline HTML and on each HTML block. Comments are not reported.
Why it matters
Section titled “Why it matters”Markdown is meant to be read as it is and to be rendered in many places. HTML is dropped, escaped or restyled by some renderers (a README on a package page, a chat message), and a document that depends on it renders differently in each.
To fix, use the Markdown form (**bold**, a link or an image). Where HTML is needed, turn the rule off for that file.
Example
Section titled “Example”Text with <b>bold</b> HTML and <!-- a comment -->.
<div>block</div>
...Configuration
Section titled “Configuration”markdown: lint: rules: no-inline-html: warn # off (default), warn, errorEnabled by the presets: markdown/markdownlint.
Suppress one line with sudsy-disable-next-line no-inline-html in a comment of the file’s language.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools. full: Sudsy reports what the upstream rule reports; partial: only part of it, as the last column says.
| Tool | Rule | Match | What differs |
|---|---|---|---|
| markdownlint | MD033 |
partial | No allowed_elements option; an HTML block is one report, not one per tag. |