Skip to content

no-trailing-punctuation

Markdownstyleno fixdefault: offmarkdown/markdownlint

Reports a heading that ends with ., ,, ;, : or ! (or the full-width forms). A ? at the end is not reported.

A heading is a title, not a sentence, and the punctuation at its end is carried into the table of contents and the anchor. A heading that ends with ? is a question title and is accepted.

To fix, delete the punctuation.

Reported
# Introduction.
## Why?
## Setup:
Overview!
---------
markdown:
lint:
rules:
no-trailing-punctuation: warn # off (default), warn, error

Enabled by the presets: markdown/markdownlint.

Suppress one line with sudsy-disable-next-line no-trailing-punctuation 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 MD026 partial No punctuation option; reported on the heading, not at the punctuation.