mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Add MD041 with tests.
This commit is contained in:
parent
eabe2387bc
commit
7f5dd9ab6b
17 changed files with 113 additions and 18 deletions
19
doc/Rules.md
19
doc/Rules.md
|
|
@ -872,3 +872,22 @@ To fix this, add a language specifier to the code block:
|
|||
#!/bin/bash
|
||||
echo Hello world
|
||||
```
|
||||
|
||||
## MD041 - First line in file should be a top level header
|
||||
|
||||
Tags: headers
|
||||
|
||||
This rule is triggered when the first line in the file isn't a top level (h1)
|
||||
header:
|
||||
|
||||
```
|
||||
This is a file without a header
|
||||
```
|
||||
|
||||
To fix this, add a header to the top of your file:
|
||||
|
||||
```
|
||||
# File with header
|
||||
|
||||
This is a file with a top level header
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue