mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-21 21:30:47 +02:00
Conform to style guidelines in setext_with_atx_closed feature
Indentation was off in logic. Also update documentation grammar appropriately.
This commit is contained in:
parent
32cd4feaea
commit
d06681198a
2 changed files with 2 additions and 2 deletions
|
@ -78,7 +78,7 @@ Be consistent with the style of header used in a document:
|
|||
|
||||
## ATX style H2
|
||||
|
||||
The setext_with_atx and settext_with_atx_closed doc styles allows atx-style
|
||||
The setext_with_atx and settext_with_atx_closed doc styles allow atx-style
|
||||
headers of level 3 or more in documents with setext style headers:
|
||||
|
||||
Setext style H1
|
||||
|
|
|
@ -200,7 +200,7 @@ module.exports = [
|
|||
!((style === "setext_with_atx" || style === "setext_with_atx_closed") &&
|
||||
(/h[12]/.test(token.tag) && (styleForToken === "setext")) ||
|
||||
(/h[^12]/.test(token.tag) &&
|
||||
(styleForToken === "atx" || styleForToken === "atx_closed")))
|
||||
(styleForToken === "atx" || styleForToken === "atx_closed")))
|
||||
) {
|
||||
errors.push(token.lineNumber);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue