mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 09:16:02 +03:00
[GH-ISSUE #94] MD003/header-style: bug, setext followed by atx flagged as error with setext_with_atx setting. #1925
Labels
No labels
bug
enhancement
enhancement
enhancement
fixed in next
fixed in next
fixed in next
new rule
new rule
new rule
pull-request
question
refactoring
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/markdownlint#1925
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fbartho on GitHub (Nov 17, 2017).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/94
If you have a markdown file as follows:
And a config of:
You get the following error
It appears to be mis-parsing
setext_with_atxas simplysetext@DavidAnson commented on GitHub (Nov 17, 2017):
Per the documentation,
setext_with_atxusessetextstyle for header levels 1 and 2 andatxstyle for header levels 3 and above. Therefore, the message above seems correct.https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md003
@fbartho commented on GitHub (Nov 17, 2017):
Ahh! I read the option name directly, and didn't see in the doc-page that it was specifically for levels 3 & above. I thought it was for any mix & match. Thanks!
Feel free to close this ticket, or turn it into a documentation improvement request? My question is resolved.
@DavidAnson commented on GitHub (Nov 17, 2017):
Because this is the first time this question has come up, I will close it for now. If someone else asks, I will make an effort to improve the documentation. Thanks for the quick reply!