aboutsummaryrefslogtreecommitdiffstats
path: root/tests/extensions-x-def_list
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2008-11-04 18:54:09 -0500
committerWaylan Limberg <waylan@gmail.com>2008-11-04 18:54:09 -0500
commit47c8ba4a561d0100feebca93ff0f288757e6e69d (patch)
treeff595a660c7245fb14ab585cf4bb6cace618fa5e /tests/extensions-x-def_list
parenta4106db7aff9e961f0c40a738f19ccf06a7cae6c (diff)
downloadmarkdown-47c8ba4a561d0100feebca93ff0f288757e6e69d.tar.gz
markdown-47c8ba4a561d0100feebca93ff0f288757e6e69d.tar.bz2
markdown-47c8ba4a561d0100feebca93ff0f288757e6e69d.zip
Added support to Definition List extension for blank lines between terms and first def. Includes tests. That was easier than expected.
Diffstat (limited to 'tests/extensions-x-def_list')
-rw-r--r--tests/extensions-x-def_list/loose_def_list.html21
-rw-r--r--tests/extensions-x-def_list/loose_def_list.txt20
2 files changed, 41 insertions, 0 deletions
diff --git a/tests/extensions-x-def_list/loose_def_list.html b/tests/extensions-x-def_list/loose_def_list.html
new file mode 100644
index 0000000..98fdec8
--- /dev/null
+++ b/tests/extensions-x-def_list/loose_def_list.html
@@ -0,0 +1,21 @@
+<p>some text</p>
+<dl>
+<dt>term 1</dt>
+<dd>
+<p>def 1-1</p>
+</dd>
+<dd>
+<p>def 2-2</p>
+</dd>
+<dt>term 2</dt>
+<dt>term 3</dt>
+<dd>
+<p>def 2-1
+line 2 of def 2-1</p>
+</dd>
+<dd>
+<p>def 2-2</p>
+<p>par 2 of def2-2</p>
+</dd>
+</dl>
+<p>more text</p> \ No newline at end of file
diff --git a/tests/extensions-x-def_list/loose_def_list.txt b/tests/extensions-x-def_list/loose_def_list.txt
new file mode 100644
index 0000000..24cd6a4
--- /dev/null
+++ b/tests/extensions-x-def_list/loose_def_list.txt
@@ -0,0 +1,20 @@
+some text
+
+term 1
+
+: def 1-1
+
+: def 2-2
+
+term 2
+term 3
+
+: def 2-1
+ line 2 of def 2-1
+
+: def 2-2
+
+ par 2 of def2-2
+
+more text
+