diff options
author | Nikolay Yakimov <root@livid.pp.ru> | 2015-09-19 17:45:54 +0300 |
---|---|---|
committer | Nikolay Yakimov <root@livid.pp.ru> | 2015-09-19 17:45:54 +0300 |
commit | 5788f62ef55f59d00f5fae7f309cd5d1b349d8f8 (patch) | |
tree | 74fa7b28f33a0b5194fb298433f8cb6864bea4b7 /tests/Tests | |
parent | 4d49f76dbb8f51db5fd2527c3ef779996bf8936f (diff) | |
download | pandoc-5788f62ef55f59d00f5fae7f309cd5d1b349d8f8.tar.gz |
[RST Writer] Don't normalize heading levels below input minimum
Diffstat (limited to 'tests/Tests')
-rw-r--r-- | tests/Tests/Writers/RST.hs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/Tests/Writers/RST.hs b/tests/Tests/Writers/RST.hs index 2a511782f..bb7b2a446 100644 --- a/tests/Tests/Writers/RST.hs +++ b/tests/Tests/Writers/RST.hs @@ -75,5 +75,30 @@ tests = [ testGroup "rubrics" , "" , "Header 2" , "--------"] + , "minimal heading levels" =: + header 2 (text "Header 1") <> + header 3 (text "Header 2") <> + header 2 (text "Header 1") <> + header 4 (text "Header 2") <> + header 5 (text "Header 3") <> + header 3 (text "Header 2") =?> + unlines + [ "Header 1" + , "--------" + , "" + , "Header 2" + , "~~~~~~~~" + , "" + , "Header 1" + , "--------" + , "" + , "Header 2" + , "~~~~~~~~" + , "" + , "Header 3" + , "^^^^^^^^" + , "" + , "Header 2" + , "~~~~~~~~"] ] ] |