From a4106db7aff9e961f0c40a738f19ccf06a7cae6c Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Tue, 4 Nov 2008 17:37:43 -0500 Subject: 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. --- tests/extensions-x-def_list/simple_def-lists.html | 43 +++++++++++++++++++++++ tests/extensions-x-def_list/simple_def-lists.txt | 29 +++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 tests/extensions-x-def_list/simple_def-lists.html create mode 100644 tests/extensions-x-def_list/simple_def-lists.txt (limited to 'tests') 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 @@ +

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.

\ 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. -- cgit v1.2.3