-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- plug md003 to the linter - more detailed messages for rules violations - documentation for md003
- Loading branch information
Showing
6 changed files
with
157 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# `MD003` - Heading style | ||
|
||
Tags: `headings` | ||
|
||
Aliases: `heading-style` | ||
|
||
Parameters: | ||
|
||
- `style`: Heading style (`string`, default `consistent`, values `atx` / `consistent` / `setext`) | ||
|
||
This rule is triggered when different heading styles are used in the same | ||
document: | ||
|
||
```markdown | ||
# ATX style H1 | ||
|
||
Setext style H1 | ||
=============== | ||
``` | ||
|
||
To fix the issue, use consistent heading styles throughout the document: | ||
|
||
```markdown | ||
# ATX style H1 | ||
|
||
## ATX style H2 | ||
``` | ||
|
||
Note: The placement of a horizontal rule directly below a line of text can | ||
trigger this rule by turning that text into a level 2 setext-style heading: | ||
|
||
```markdown | ||
A line of text followed by a horizontal rule becomes a heading | ||
--- | ||
``` | ||
|
||
Rationale: Consistent formatting makes it easier to understand a document. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters