mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Add passing tests, refactor to introduce forEachLine.
This commit is contained in:
parent
9bedd25234
commit
b21548a992
10 changed files with 72 additions and 38 deletions
3
test/consistent_bullet_styles_asterisk.md
Normal file
3
test/consistent_bullet_styles_asterisk.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
* Item
|
||||
* Item
|
||||
* Item
|
||||
3
test/consistent_bullet_styles_dash.md
Normal file
3
test/consistent_bullet_styles_dash.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
- Item
|
||||
- Item
|
||||
- Item
|
||||
3
test/consistent_bullet_styles_plus.md
Normal file
3
test/consistent_bullet_styles_plus.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
+ Item
|
||||
+ Item
|
||||
+ Item
|
||||
0
test/empty_doc.md
Normal file
0
test/empty_doc.md
Normal file
21
test/fenced_code_blocks.md
Normal file
21
test/fenced_code_blocks.md
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
This is a GFM-style fenced code block:
|
||||
|
||||
``` bash
|
||||
#!/bin/bash
|
||||
|
||||
# Print something to stdout:
|
||||
echo "Hello"
|
||||
echo "World"
|
||||
```
|
||||
|
||||
This is a kramdown-style fenced code block:
|
||||
|
||||
~~~ bash
|
||||
#!/bin/bash
|
||||
|
||||
# Print something to stdout:
|
||||
echo "Hello"
|
||||
echo "World"
|
||||
~~~
|
||||
|
||||
None of the above should trigger any heading related rules.
|
||||
1
test/first_header_good_atx.md
Normal file
1
test/first_header_good_atx.md
Normal file
|
|
@ -0,0 +1 @@
|
|||
# Header
|
||||
2
test/first_header_good_setext.md
Normal file
2
test/first_header_good_setext.md
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
Header
|
||||
======
|
||||
5
test/header_mutliple_h1_no_toplevel.md
Normal file
5
test/header_mutliple_h1_no_toplevel.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
Some introductory text
|
||||
|
||||
# Heading 1
|
||||
|
||||
# Heading 2
|
||||
Loading…
Add table
Add a link
Reference in a new issue