mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-22 08:50:13 +01:00
21 lines
582 B
Markdown
21 lines
582 B
Markdown
|
|
# MD026 - Trailing punctuation in header
|
||
|
|
|
||
|
|
Tags: headers
|
||
|
|
|
||
|
|
Aliases: no-trailing-punctuation
|
||
|
|
|
||
|
|
Parameters: punctuation (string; default ".,;:!?")
|
||
|
|
|
||
|
|
This rule is triggered on any header that has a punctuation character as the
|
||
|
|
last character in the line:
|
||
|
|
|
||
|
|
# This is a header.
|
||
|
|
|
||
|
|
To fix this, remove any trailing punctuation:
|
||
|
|
|
||
|
|
# This is a header
|
||
|
|
|
||
|
|
Note: The punctuation parameter can be used to specify what characters class
|
||
|
|
as punctuation at the end of the header. For example, you can set it to
|
||
|
|
`".,;:!"` to allow headers with question marks in them, such as might be used
|
||
|
|
in an FAQ.
|