diff options
author | Alexander Krotov <ilabdsf@gmail.com> | 2017-11-13 18:41:30 +0300 |
---|---|---|
committer | Alexander Krotov <ilabdsf@gmail.com> | 2017-11-13 18:41:49 +0300 |
commit | 3a83b3843db6434e9806558ea1e912055d5baf04 (patch) | |
tree | ba8ae5cdcedf55e752f9325705f739ee3f48421d /test/Tests | |
parent | e5e8350fcb3ea321efc28aaf88413677b3c97613 (diff) | |
download | pandoc-3a83b3843db6434e9806558ea1e912055d5baf04.tar.gz |
Replace "emacs" extension with "amuse" extension
It makes clear that extension is related to Muse markup.
Diffstat (limited to 'test/Tests')
-rw-r--r-- | test/Tests/Readers/Muse.hs | 12 | ||||
-rw-r--r-- | test/Tests/Writers/Muse.hs | 4 |
2 files changed, 7 insertions, 9 deletions
diff --git a/test/Tests/Readers/Muse.hs b/test/Tests/Readers/Muse.hs index 29cef09ca..b4e5dd05e 100644 --- a/test/Tests/Readers/Muse.hs +++ b/test/Tests/Readers/Muse.hs @@ -10,20 +10,16 @@ import Text.Pandoc import Text.Pandoc.Arbitrary () import Text.Pandoc.Builder -muse :: Text -> Pandoc -muse = purely $ \s -> do - setInputFiles ["in"] - setOutputFile (Just "out") - readMuse def s +amuse :: Text -> Pandoc +amuse = purely $ readMuse def { readerExtensions = extensionsFromList [Ext_amuse]} emacsMuse :: Text -> Pandoc -emacsMuse = purely $ readMuse def { readerExtensions = - enableExtension Ext_emacs pandocExtensions } +emacsMuse = purely $ readMuse def { readerExtensions = emptyExtensions } infix 4 =: (=:) :: ToString c => String -> (Text, c) -> TestTree -(=:) = test muse +(=:) = test amuse spcSep :: [Inlines] -> Inlines spcSep = mconcat . intersperse space diff --git a/test/Tests/Writers/Muse.hs b/test/Tests/Writers/Muse.hs index e5c19c7bc..a6c1edc3b 100644 --- a/test/Tests/Writers/Muse.hs +++ b/test/Tests/Writers/Muse.hs @@ -8,7 +8,9 @@ import Text.Pandoc.Arbitrary () import Text.Pandoc.Builder muse :: (ToPandoc a) => a -> String -muse = museWithOpts def{ writerWrapText = WrapNone } +muse = museWithOpts def{ writerWrapText = WrapNone, + writerExtensions = extensionsFromList [Ext_amuse, + Ext_auto_identifiers] } museWithOpts :: (ToPandoc a) => WriterOptions -> a -> String museWithOpts opts = unpack . purely (writeMuse opts) . toPandoc |