fenced-code-language
What it does
Section titled “What it does”Reports a fenced code block that has no info string after the opening fence.
Why it matters
Section titled “Why it matters”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.
Configuration
Section titled “Configuration”markdown: lint: rules: fenced-code-language: warn # off (default), warn, errorEnabled by the presets: markdown/markdownlint.
Suppress one line with sudsy-disable-next-line fenced-code-language 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 | MD040 |
partial | No allowed_languages or language_only options. |