From effa7a8aaace52b466fdd19ffd97e5e33e2a9a3a Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Fri, 19 Jul 2013 18:58:50 -0400 Subject: Attr_List Extension now also supports nested ol's. Not sure how I missed that when committing ea4af0d. Also as a side-effect, this fixes #230 - which brought my previous oversight to my attention. Thanks for the report @divisoryang. Also added some tests - including tests of list items without attr_lists. Sometimes I forget to test markup that does not use an extension when an extension is enabled. That's what resulted in #230 being reported. --- tests/extensions/attr_list.html | 24 +++++++++++++++++++++++- tests/extensions/attr_list.txt | 20 ++++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) (limited to 'tests/extensions') diff --git a/tests/extensions/attr_list.html b/tests/extensions/attr_list.html index b1032f9..b1ed85c 100644 --- a/tests/extensions/attr_list.html +++ b/tests/extensions/attr_list.html @@ -26,4 +26,26 @@ And a nested Item3-1 - \ No newline at end of file +
  • Item4
      +
    • Item4-1
    • +
    +
  • +
  • Item5
  • + +

    And ordered lists too:

    +
      +
    1. Item1
    2. +
    3. Item2
        +
      1. Item2-1
      2. +
      +
    4. +
    5. Item3
        +
      1. Item3-1
      2. +
      +
    6. +
    7. Item4
        +
      1. Item4-1
      2. +
      +
    8. +
    9. Item5
    10. +
    \ No newline at end of file diff --git a/tests/extensions/attr_list.txt b/tests/extensions/attr_list.txt index 959c117..8ecfe44 100644 --- a/tests/extensions/attr_list.txt +++ b/tests/extensions/attr_list.txt @@ -45,3 +45,23 @@ Also a codespan: `{: .someclass}`{: .foo}. {: .item } * _Item3-1_{: .emph } {: .subitem } +* Item4 + * Item4-1 +* Item5 + +And ordered lists too: + +1. Item1 + {: .item } +2. Item2 + {: .item } + 1. Item2-1 + {: .subitem } +3. _Item3_{: .emph } + {: .item } + 1. _Item3-1_{: .emph } + {: .subitem } +4. Item4 + 1. Item4-1 +5. Item5 + -- cgit v1.2.3