Add passing tests, refactor to introduce forEachLine.

This commit is contained in:
David Anson 2015-03-09 00:31:07 -07:00
parent 9bedd25234
commit b21548a992
10 changed files with 72 additions and 38 deletions

View file

@ -0,0 +1,3 @@
* Item
* Item
* Item

View file

@ -0,0 +1,3 @@
- Item
- Item
- Item

View file

@ -0,0 +1,3 @@
+ Item
+ Item
+ Item

0
test/empty_doc.md Normal file
View file

View 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.

View file

@ -0,0 +1 @@
# Header

View file

@ -0,0 +1,2 @@
Header
======

View file

@ -0,0 +1,5 @@
Some introductory text
# Heading 1
# Heading 2