aboutsummaryrefslogtreecommitdiff
path: root/test/Tests/Readers
diff options
context:
space:
mode:
authorAlexander Krotov <ilabdsf@gmail.com>2017-12-06 19:35:01 +0300
committerAlexander Krotov <ilabdsf@gmail.com>2017-12-06 19:35:01 +0300
commit6fd3cdac46f916b74d88aab696dc81c93581c162 (patch)
tree729c7e6062525810beb5ee51f7ea20ab0c6f0b1d /test/Tests/Readers
parent3ae359721d174205582cd5bd3b13525493e10619 (diff)
downloadpandoc-6fd3cdac46f916b74d88aab696dc81c93581c162.tar.gz
Muse reader: add test for #disable-tables directive in Emacs mode
Diffstat (limited to 'test/Tests/Readers')
-rw-r--r--test/Tests/Readers/Muse.hs20
1 files changed, 13 insertions, 7 deletions
diff --git a/test/Tests/Readers/Muse.hs b/test/Tests/Readers/Muse.hs
index 51e249fb4..a25b41937 100644
--- a/test/Tests/Readers/Muse.hs
+++ b/test/Tests/Readers/Muse.hs
@@ -454,6 +454,19 @@ tests =
] =?>
blockQuote (para "* Hi")
]
+ , testGroup "Directives"
+ [ "Title" =:
+ "#title Document title" =?>
+ let titleInline = toList $ "Document title"
+ meta = setMeta "title" (MetaInlines titleInline) $ nullMeta
+ in Pandoc meta mempty
+ -- Emacs Muse documentation says that "You can use any combination
+ -- of uppercase and lowercase letters for directives",
+ -- but also allows '-', which is not documented, but used for disable-tables.
+ , test emacsMuse "Disable tables"
+ ("#disable-tables t" =?>
+ Pandoc (setMeta "disable-tables" (MetaInlines $ toList "t") $ nullMeta) mempty)
+ ]
, testGroup "Anchors"
[ "Anchor" =:
T.unlines [ "; A comment to make sure anchor is not parsed as a directive"
@@ -940,11 +953,4 @@ tests =
, para "Third"
])
]
- , testGroup "Meta"
- [ "Title" =:
- "#title Document title" =?>
- let titleInline = toList $ "Document title"
- meta = setMeta "title" (MetaInlines titleInline) $ nullMeta
- in Pandoc meta mempty
- ]
]