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:
Christopher Lopes 2016-02-24 19:32:35 -08:00
parent 32cd4feaea
commit d06681198a
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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);
}