aboutsummaryrefslogtreecommitdiffstats
path: root/tests/misc
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2011-06-15 08:50:55 -0400
committerWaylan Limberg <waylan@gmail.com>2011-06-15 08:50:55 -0400
commit8a64c2970ca99f1586bc85a59898bfe7269c9128 (patch)
treecd28870f08030ce4827117fec69e9706c52f2528 /tests/misc
parent11124d9f8ddd547c93078dcf6380deacec7fc32f (diff)
downloadmarkdown-8a64c2970ca99f1586bc85a59898bfe7269c9128.tar.gz
markdown-8a64c2970ca99f1586bc85a59898bfe7269c9128.tar.bz2
markdown-8a64c2970ca99f1586bc85a59898bfe7269c9128.zip
Fixed #21. A header and paragraph not seperated by a blank line inside a list item are now parsed correctly. One of those crazy wierd edge cases that no one would ever test for, but is obvious once you see it.
Diffstat (limited to 'tests/misc')
-rw-r--r--tests/misc/header-in-lists.html20
-rw-r--r--tests/misc/header-in-lists.txt14
2 files changed, 34 insertions, 0 deletions
diff --git a/tests/misc/header-in-lists.html b/tests/misc/header-in-lists.html
new file mode 100644
index 0000000..61a6d97
--- /dev/null
+++ b/tests/misc/header-in-lists.html
@@ -0,0 +1,20 @@
+<p>Tight List:</p>
+<ul>
+<li>
+<h1>Header1</h1>
+Line 1-2 - not a header or paragraph!</li>
+<li>
+<h1>Header2</h1>
+Line 2-2 - not a header or paragraph!</li>
+</ul>
+<p>Loose List:</p>
+<ul>
+<li>
+<h1>Header1</h1>
+<p>Line 1-2 - a paragraph</p>
+</li>
+<li>
+<h1>Header2</h1>
+<p>Line 2-2 - a paragraph</p>
+</li>
+</ul> \ No newline at end of file
diff --git a/tests/misc/header-in-lists.txt b/tests/misc/header-in-lists.txt
new file mode 100644
index 0000000..b633d8a
--- /dev/null
+++ b/tests/misc/header-in-lists.txt
@@ -0,0 +1,14 @@
+Tight List:
+
+* #Header1
+Line 1-2 - not a header or paragraph!
+* #Header2
+Line 2-2 - not a header or paragraph!
+
+Loose List:
+
+* #Header1
+Line 1-2 - a paragraph
+
+* #Header2
+Line 2-2 - a paragraph