diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-12-21 23:16:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-21 23:16:03 -0700 |
commit | af048816555046d83f2cc4813d61e0430321476e (patch) | |
tree | 2a36019c921f30506611ffa417b777744efa1c58 /test/Tests/Writers | |
parent | 32f9dbbae5e3e1cce43d372db5564da378947388 (diff) | |
parent | d85357139748ea657f030ab314c39e70f56764f4 (diff) | |
download | pandoc-af048816555046d83f2cc4813d61e0430321476e.tar.gz |
Merge pull request #4177 from stencila/jats-xml-reader
Add Basic JATS reader based on DocBook reader
Diffstat (limited to 'test/Tests/Writers')
-rw-r--r-- | test/Tests/Writers/JATS.hs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/Tests/Writers/JATS.hs b/test/Tests/Writers/JATS.hs index cd4609849..f14f1c229 100644 --- a/test/Tests/Writers/JATS.hs +++ b/test/Tests/Writers/JATS.hs @@ -31,6 +31,11 @@ infix 4 =: tests :: [TestTree] tests = [ testGroup "inline code" [ "basic" =: code "@&" =?> "<p>\n <monospace>@&</monospace>\n</p>" + , "lang" =: codeWith ("", ["c"], []) "@&" =?> "<p>\n <code language=\"c\">@&</code>\n</p>" + ] + , testGroup "block code" + [ "basic" =: codeBlock "@&" =?> "<preformat>@&</preformat>" + , "lang" =: codeBlockWith ("", ["c"], []) "@&" =?> "<code language=\"c\">@&</code>" ] , testGroup "images" [ "basic" =: @@ -38,7 +43,7 @@ tests = [ testGroup "inline code" =?> "<graphic mimetype=\"image\" mime-subtype=\"\" xlink:href=\"/url\" xlink:title=\"title\" />" ] , testGroup "inlines" - [ "Emphasis" =: emph ("emphasized") + [ "Emphasis" =: emph "emphasized" =?> "<p>\n <italic>emphasized</italic>\n</p>" ] , "bullet list" =: bulletList [ plain $ text "first" |