{-# LANGUAGE OverloadedStrings #-} module Tests.Readers.JATS (tests) where import Data.Text (Text) import Test.Tasty import Tests.Helpers import Text.Pandoc import Text.Pandoc.Arbitrary () import Text.Pandoc.Builder jats :: Text -> Pandoc jats = purely $ readJATS def tests :: [TestTree] tests = [ testGroup "inline code" [ test jats "basic" $ "
\n
\n @&
\n
@&
" =?> codeBlockWith ("", ["c"], []) "@&"
]
, testGroup "images"
[ test jats "basic" $ "\n\ \ first\n\ \
\n\ \\n\ \ second\n\ \
\n\ \\n\ \ third\n\ \
\n\ \\n\ \ hi there\n\ \
\n\ \\n\
\
\n\
\
\n\
\
\n\ -- \ note\n\ -- \
\n\ -- \