aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlexander Krotov <ilabdsf@gmail.com>2017-11-26 07:32:59 +0300
committerAlexander Krotov <ilabdsf@gmail.com>2017-11-26 22:14:18 +0300
commitbdad8c1d690f791ca5ef36aee07c9874fcf50e53 (patch)
tree524ef5c8a5836bd11606d85ad6ccca4a369cb9b1 /test
parenta8ac673285877f12bf65843676c57979a9ee28ce (diff)
downloadpandoc-bdad8c1d690f791ca5ef36aee07c9874fcf50e53.tar.gz
Muse reader: drop common space prefix from list items
Diffstat (limited to 'test')
-rw-r--r--test/Tests/Readers/Muse.hs18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/Tests/Readers/Muse.hs b/test/Tests/Readers/Muse.hs
index ee910a450..1f4a9e599 100644
--- a/test/Tests/Readers/Muse.hs
+++ b/test/Tests/Readers/Muse.hs
@@ -342,6 +342,24 @@ tests =
, "</example>"
] =?>
codeBlock "Example line\n"
+ , "Example inside list" =:
+ T.unlines [ " - <example>"
+ , " foo"
+ , " </example>"
+ ] =?>
+ bulletList [ codeBlock "foo" ]
+ , "Indented example inside list" =:
+ T.unlines [ " - <example>"
+ , " foo"
+ , " </example>"
+ ] =?>
+ bulletList [ codeBlock "foo" ]
+ , "Example inside definition list" =:
+ T.unlines [ " foo :: <example>"
+ , " bar"
+ , " </example>"
+ ] =?>
+ definitionList [ ("foo", [codeBlock "bar"]) ]
]
, testGroup "Literal blocks"
[ test emacsMuse "Literal block"