Skip to content

fenced-code-language

Markdownstyleno fixdefault: offmarkdown/markdownlint

Reports a fenced code block that has no info string after the opening fence.

Renderers use the language to highlight the code, and tools use it to pick a formatter or to run a check on the block. Without it a block of JSON looks like any text, and tools skip it.

To fix, name the language after the fence (```json), or text when the block is not code.

Reported

no language

...
markdown:
lint:
rules:
fenced-code-language: warn # off (default), warn, error

Enabled by the presets: markdown/markdownlint.

Suppress one line with sudsy-disable-next-line fenced-code-language 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 MD040 partial No allowed_languages or language_only options.