aboutsummaryrefslogtreecommitdiffstats
path: root/tests/extensions/extra
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2013-09-02 10:22:49 -0400
committerWaylan Limberg <waylan@gmail.com>2013-09-02 10:22:49 -0400
commit78506014eceb3400d2fee3b39653753fae80939a (patch)
tree7de25175e7fbdcda144bbd3577eee5284346d7ac /tests/extensions/extra
parent5c4523e7956063d20d517ba9a33853a5541a1396 (diff)
downloadmarkdown-78506014eceb3400d2fee3b39653753fae80939a.tar.gz
markdown-78506014eceb3400d2fee3b39653753fae80939a.tar.bz2
markdown-78506014eceb3400d2fee3b39653753fae80939a.zip
Ensure each term on def list maintains its own loose status.
Previously, the code was ignoring whether this was a new term when determining whether the currect item should be loose or not. Fixes #243. Thanks for the report @Anomareh.
Diffstat (limited to 'tests/extensions/extra')
-rw-r--r--tests/extensions/extra/loose_def_list.html12
-rw-r--r--tests/extensions/extra/loose_def_list.txt11
2 files changed, 22 insertions, 1 deletions
diff --git a/tests/extensions/extra/loose_def_list.html b/tests/extensions/extra/loose_def_list.html
index 98fdec8..0de6eb6 100644
--- a/tests/extensions/extra/loose_def_list.html
+++ b/tests/extensions/extra/loose_def_list.html
@@ -18,4 +18,14 @@ line 2 of def 2-1</p>
<p>par 2 of def2-2</p>
</dd>
</dl>
-<p>more text</p> \ No newline at end of file
+<p>more text</p>
+<dl>
+<dt>term 4</dt>
+<dd>not loose</dd>
+<dt>term 5</dt>
+<dd>
+<p>loose</p>
+</dd>
+<dt>term 6</dt>
+<dd>also not loose</dd>
+</dl> \ No newline at end of file
diff --git a/tests/extensions/extra/loose_def_list.txt b/tests/extensions/extra/loose_def_list.txt
index 24cd6a4..909d12b 100644
--- a/tests/extensions/extra/loose_def_list.txt
+++ b/tests/extensions/extra/loose_def_list.txt
@@ -18,3 +18,14 @@ term 3
more text
+term 4
+: not loose
+
+
+term 5
+
+: loose
+
+term 6
+: also not loose
+