| id | MDS004 |
|---|---|
| name | first-line-heading |
| status | ready |
| description | First line of the file should be a heading. |
First line of the file should be a heading.
- ID: MDS004
- Name:
first-line-heading - Status: ready
- Default: enabled, level: 1
- Fixable: no
- Implementation: source
- Category: heading
| Setting | Type | Default | Description |
|---|---|---|---|
level |
int | 1 | Required heading level for the first line |
Enable (default):
rules:
first-line-heading:
level: 1Disable:
rules:
first-line-heading: falseCustom (require level 2):
rules:
first-line-heading:
level: 2Some content here.
# TitleThe file below has a blank line between the frontmatter closing
--- and # Title. The blank line is not visible in the code
block but triggers the diagnostic.
# Title# Title
Some content here.| Message | Condition |
|---|---|
first line should be a level {level} heading |
Line 1 is missing or not a heading |
first line should be a level {level} heading, found blank line |
First child is a heading but preceded by blank line |
first heading should be level {level}, got {n} |
First heading on line 1 has the wrong level |