@@ -14,8 +14,8 @@ Tests for the RST reader.
1414-}
1515module Tests.Readers.Jira (tests) where
1616
17−import Prelude
18−import Data.Text (Text)
17+import Prelude hiding (unlines)
18+import Data.Text (Text, unlines)
1919import Test.Tasty (TestTree, testGroup)
2020import Tests.Helpers (ToString, purely, test, (=?>))
2121import Text.Pandoc (def)
@@ -57,6 +57,16 @@ tests =
5757 [ "simple block quote" =:
5858 "bq. _Don't_ quote me on this." =?>
5959 blockQuote (para $ emph "Don't" <> space <> "quote me on this.")
60+
61+ , "block quote between paragraphs" =:
62+ unlines [ "Regular text."
63+ , "bq.This is a blockquote"
64+ , "More text."
65+ ] =?>
66+ mconcat [ para "Regular text."
67+ , blockQuote (para "This is a blockquote")
68+ , para "More text."
69+ ]
6070 ]
6171
6272 , testGroup "table"
@@ -105,6 +115,10 @@ tests =
105115 "This is {color:red}red{color}." =?>
106116 para ("This is " <> spanWith ("", [], [("color", "red")]) "red" <> ".")
107117
118+ , "hexcolor" =:
119+ "{color:#00875A}green{color}" =?>
120+ para (spanWith ("", [], [("color", "#00875A")]) "green")
121+
108122 , "linebreak" =:
109123 "first\nsecond" =?>
110124 para ("first" <> linebreak <> "second")