Skip to content

single-title

Markdownstyleno fixdefault: offmarkdown/markdownlint

Reports a second or later top-level heading (# Title) in a document.

A document has one title: the top-level heading is what tools use as the page title, so a second one makes the title ambiguous, and the outline then has several roots.

To fix, make the later headings second-level, or split the document.

Reported
...
## Sub
# Two
Three
=====
markdown:
lint:
rules:
single-title: warn # off (default), warn, error

Enabled by the presets: markdown/markdownlint.

Suppress one line with sudsy-disable-next-line single-title 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 MD025 partial No level option, and a title: in the front matter does not count as a title.