From a9cd895467b3caa08d585458fdcbcc5525356493 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Tue, 24 Jan 2012 07:57:58 -0500 Subject: Fixes #64. Added sane_list extension. This is an extension which alters the behavior of lists to be less surprising. If turned out to be rather simple to code. I'm surprised no one had written it yet. I should note that this extension does not generate separate lists if different unordered list markers are used (`*` verses `-` verses `+`) The way the parser works that would be a little more tricky. --- tests/extensions/sane_lists.html | 21 +++++++++++++++++++++ tests/extensions/sane_lists.txt | 16 ++++++++++++++++ tests/extensions/test.cfg | 3 +++ 3 files changed, 40 insertions(+) create mode 100644 tests/extensions/sane_lists.html create mode 100644 tests/extensions/sane_lists.txt (limited to 'tests/extensions') diff --git a/tests/extensions/sane_lists.html b/tests/extensions/sane_lists.html new file mode 100644 index 0000000..b9fe007 --- /dev/null +++ b/tests/extensions/sane_lists.html @@ -0,0 +1,21 @@ +
    +
  1. Ordered
  2. +
  3. List
  4. +
+ +
    +
  1. Ordered again
  2. +
+

Paragraph +* not a list item

+
    +
  1. More ordered +* not a list item
  2. +
+ \ No newline at end of file diff --git a/tests/extensions/sane_lists.txt b/tests/extensions/sane_lists.txt new file mode 100644 index 0000000..51981b3 --- /dev/null +++ b/tests/extensions/sane_lists.txt @@ -0,0 +1,16 @@ +1. Ordered +2. List + +* Unordered +* List + +1. Ordered again + +Paragraph +* not a list item + +1. More ordered +* not a list item + +* Unordered again +1. not a list item diff --git a/tests/extensions/test.cfg b/tests/extensions/test.cfg index 19721ce..ac8a747 100644 --- a/tests/extensions/test.cfg +++ b/tests/extensions/test.cfg @@ -26,3 +26,6 @@ extensions=fenced_code [github_flavored] extensions=fenced_code + +[sane_lists] +extensions=sane_lists -- cgit v1.2.3