diff options
author | Alexander Krotov <ilabdsf@gmail.com> | 2017-12-06 19:35:01 +0300 |
---|---|---|
committer | Alexander Krotov <ilabdsf@gmail.com> | 2017-12-06 19:35:01 +0300 |
commit | 6fd3cdac46f916b74d88aab696dc81c93581c162 (patch) | |
tree | 729c7e6062525810beb5ee51f7ea20ab0c6f0b1d /test/Tests/Readers | |
parent | 3ae359721d174205582cd5bd3b13525493e10619 (diff) | |
download | pandoc-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.hs | 20 |
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 - ] ] |