Skip to content

no-inline-html

Markdownstyleno fixdefault: offmarkdown/markdownlint

Reports raw HTML in a document, on each tag of inline HTML and on each HTML block. Comments are not reported.

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.

Reported
Text with <b>bold</b> HTML and <!-- a comment -->.
<div>
block
</div>
...
markdown:
lint:
rules:
no-inline-html: warn # off (default), warn, error

Enabled by the presets: markdown/markdownlint.

Suppress one line with sudsy-disable-next-line no-inline-html in a comment of the file’s language.

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.