no-trailing-punctuation
What it does
Section titled “What it does”Reports a heading that ends with ., ,, ;, : or ! (or the full-width forms). A ? at the end is not reported.
Why it matters
Section titled “Why it matters”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.
Example
Section titled “Example”# Introduction.
## Why?
## Setup:
Overview!---------Configuration
Section titled “Configuration”markdown: lint: rules: no-trailing-punctuation: warn # off (default), warn, errorEnabled by the presets: markdown/markdownlint.
Suppress one line with sudsy-disable-next-line no-trailing-punctuation 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 | MD026 |
partial | No punctuation option; reported on the heading, not at the punctuation. |