mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00: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
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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue