aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2008-11-04 17:37:43 -0500
committerWaylan Limberg <waylan@gmail.com>2008-11-04 17:37:43 -0500
commita4106db7aff9e961f0c40a738f19ccf06a7cae6c (patch)
treeb403e1af3332899d3d92898bc37ea117383c2e1e /tests
parentcbd702c752971b0f55e88cdb08ccf6965061bbf4 (diff)
downloadmarkdown-a4106db7aff9e961f0c40a738f19ccf06a7cae6c.tar.gz
markdown-a4106db7aff9e961f0c40a738f19ccf06a7cae6c.tar.bz2
markdown-a4106db7aff9e961f0c40a738f19ccf06a7cae6c.zip
Added Definition List extension. This is a first draft. A few more advanced features in PHP's implementation don't work yet. Most notably a blank line between a term and its first definition will break things. See the included test for what works.
Diffstat (limited to 'tests')
-rw-r--r--tests/extensions-x-def_list/simple_def-lists.html43
-rw-r--r--tests/extensions-x-def_list/simple_def-lists.txt29
2 files changed, 72 insertions, 0 deletions
diff --git a/tests/extensions-x-def_list/simple_def-lists.html b/tests/extensions-x-def_list/simple_def-lists.html
new file mode 100644
index 0000000..7cb4d81
--- /dev/null
+++ b/tests/extensions-x-def_list/simple_def-lists.html
@@ -0,0 +1,43 @@
+<p>Some text</p>
+<dl>
+<dt>term1</dt>
+<dd>
+<p>Def1</p>
+</dd>
+<dt>term2-1</dt>
+<dt>term2-2</dt>
+<dd>
+<p>Def2-1</p>
+</dd>
+<dd>
+<p>Def2-2</p>
+</dd>
+</dl>
+<p>more text</p>
+<dl>
+<dt>term <em>3</em></dt>
+<dd>
+<p>def 3
+line <strong>2</strong> of def 3</p>
+<p>paragraph 2 of def 3.</p>
+</dd>
+<dd>
+<p>def 3-2</p>
+<pre><code># A code block in a def
+</code></pre>
+<blockquote>
+<p>a blockquote</p>
+</blockquote>
+<ul>
+<li>
+<p>a list item</p>
+</li>
+<li>
+<blockquote>
+<p>blockquote in list</p>
+</blockquote>
+</li>
+</ul>
+</dd>
+</dl>
+<p>final text.</p> \ No newline at end of file
diff --git a/tests/extensions-x-def_list/simple_def-lists.txt b/tests/extensions-x-def_list/simple_def-lists.txt
new file mode 100644
index 0000000..20c028a
--- /dev/null
+++ b/tests/extensions-x-def_list/simple_def-lists.txt
@@ -0,0 +1,29 @@
+Some text
+
+term1
+: Def1
+
+term2-1
+term2-2
+: Def2-1
+: Def2-2
+
+more text
+
+term *3*
+: def 3
+ line __2__ of def 3
+
+ paragraph 2 of def 3.
+
+: def 3-2
+
+ # A code block in a def
+
+ > a blockquote
+
+ * a list item
+
+ * > blockquote in list
+
+final text.