From 0e4b8ae36296030569627baa537b9d71af621d20 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Fri, 16 Feb 2018 12:53:41 +0300 Subject: Muse reader: prioritize lists with roman numerals over alphabetical lists This is to make sure "i." starts a roman numbered list, instead of a list with letter "i" (followed by "j", "k", ..."). --- test/Tests/Readers/Muse.hs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test') diff --git a/test/Tests/Readers/Muse.hs b/test/Tests/Readers/Muse.hs index faa21513a..2a350d252 100644 --- a/test/Tests/Readers/Muse.hs +++ b/test/Tests/Readers/Muse.hs @@ -767,6 +767,18 @@ tests = , para "Item2" , para "Item3" ] + , "Ordered list with roman numerals" =: + T.unlines + [ " i. First" + , " ii. Second" + , " iii. Third" + , " iv. Fourth" + ] =?> + orderedListWith (1, LowerRoman, Period) [ para "First" + , para "Second" + , para "Third" + , para "Fourth" + ] , "Bullet list with empty items" =: T.unlines [ " -" -- cgit v1.2.3