aboutsummaryrefslogtreecommitdiff
path: root/test/Tests/Readers
diff options
context:
space:
mode:
authorAlexander Krotov <ilabdsf@gmail.com>2018-04-09 01:05:38 +0300
committerAlexander Krotov <ilabdsf@gmail.com>2018-04-09 02:05:57 +0300
commit17b04995161847494f00e7e7a6ecdff3d5775266 (patch)
tree8f2f99652fbb942a953ed654968859c9bf88c81c /test/Tests/Readers
parentbfbc5ee37329651510d835171eb81c400a17f42e (diff)
downloadpandoc-17b04995161847494f00e7e7a6ecdff3d5775266.tar.gz
Muse reader: add support for Text:Amuse multiline headings
Diffstat (limited to 'test/Tests/Readers')
-rw-r--r--test/Tests/Readers/Muse.hs22
1 files changed, 18 insertions, 4 deletions
diff --git a/test/Tests/Readers/Muse.hs b/test/Tests/Readers/Muse.hs
index 77b18e066..11eebbdc0 100644
--- a/test/Tests/Readers/Muse.hs
+++ b/test/Tests/Readers/Muse.hs
@@ -558,18 +558,32 @@ tests =
] =?>
headerWith ("bar",[],[]) 2 "Foo"
, "Headers don't consume anchors separated with a blankline" =:
- T.unlines [ "** Foo"
- , ""
+ T.unlines [ "; A comment to make sure anchor is not parsed as a directive"
, "#bar"
+ , ""
+ , "** Foo"
+ ] =?>
+ para (spanWith ("bar", [], []) mempty) <>
+ header 2 "Foo"
+ , "Headers terminate paragraph" =:
+ T.unlines [ "foo"
+ , "* bar"
] =?>
- header 2 "Foo" <>
- para (spanWith ("bar", [], []) mempty)
+ para "foo" <> header 1 "bar"
, "Headers terminate lists" =:
T.unlines [ " - foo"
, "* bar"
] =?>
bulletList [ para "foo" ] <>
header 1 "bar"
+ , test emacsMuse "Paragraphs terminate Emacs Muse headers"
+ (T.unlines [ "* Foo"
+ , "bar"
+ ] =?> header 1 "Foo" <> para "bar")
+ , "Paragraphs don't terminate Text::Amuse headers" =:
+ T.unlines [ "* Foo"
+ , "bar"
+ ] =?> header 1 "Foo\nbar"
]
, testGroup "Directives"
[ "Title" =: