| id | MDS002 |
|---|---|
| name | heading-style |
| status | ready |
| description | Heading style must be consistent. |
Heading style must be consistent.
| Setting | Type | Default | Description |
|---|---|---|---|
style |
string | "atx" |
"atx" (# Heading) or "setext" (underline with ===/---) |
Enable (default):
rules:
heading-style:
style: atxDisable:
rules:
heading-style: falseCustom (setext style):
rules:
heading-style:
style: setextSetext heading used when ATX is required:
# Title
Section
-------Setext heading with marker:
# Title
Section
-------
<?allow-empty-section?>ATX heading used when Setext is required:
# Title
## Section# Title
## Section
Body text.Title
=====
Section
-------
Body text.| Message | Condition |
|---|---|
heading style should be atx |
style: atx and a Setext heading is found |
heading style should be setext |
style: setext and an ATX heading is found |
- ID: MDS002
- Name:
heading-style - Status: ready
- Default: enabled, style: atx
- Fixable: yes
- Implementation: source
- Category: heading