From fdfa88b77eff39cda4716fdb49444f5e56d144ac Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Wed, 6 Feb 2013 13:42:03 -0500 Subject: Account for a paragraph that starts with a colon when processing def_lists Fixes #171. While that report provided an example of an unordered list item that started with a colon, any block that starts with a colon and has no siblings before it (paragraph as begining if document, list item, etc) all exhibit this same behavior. Following PHP Markdown Extra's lead, these are not definition items as they have no term before them. --- tests/extensions/extra/def-in-list.html | 25 +++++++++++++++++++++++++ tests/extensions/extra/def-in-list.txt | 15 +++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 tests/extensions/extra/def-in-list.html create mode 100644 tests/extensions/extra/def-in-list.txt (limited to 'tests/extensions') diff --git a/tests/extensions/extra/def-in-list.html b/tests/extensions/extra/def-in-list.html new file mode 100644 index 0000000..21cddaa --- /dev/null +++ b/tests/extensions/extra/def-in-list.html @@ -0,0 +1,25 @@ +

: a paragraph that starts with a colon

+ \ No newline at end of file diff --git a/tests/extensions/extra/def-in-list.txt b/tests/extensions/extra/def-in-list.txt new file mode 100644 index 0000000..7a292ab --- /dev/null +++ b/tests/extensions/extra/def-in-list.txt @@ -0,0 +1,15 @@ +: a paragraph that starts with a colon + +* A List item +* + A def term + : A def item + : a second + +* Another def term + + : a loose item + + : a second + +* : a list item that starts with a colon -- cgit v1.2.3