@@ -230,6 +230,31 @@ tests =
230230 lineBlock [ "Foo bar" ] <>
231231 lineBlock [ "Foo bar" ] <>
232232 lineBlock [ "\160\160\160Foo" ]
233+ , testGroup "Example tag"
234+ [ "Tags on separate lines" =:
235+ T.unlines [ "<example>"
236+ , "Example line"
237+ , "</example>"
238+ ] =?>
239+ codeBlock "Example line"
240+ , "One line" =:
241+ "<example>Example line</example>" =?>
242+ codeBlock "Example line"
243+ , "One blank line in the beginning" =:
244+ T.unlines [ "<example>"
245+ , ""
246+ , "Example line"
247+ , "</example>"
248+ ] =?>
249+ codeBlock "\nExample line"
250+ , "One blank line in the end" =:
251+ T.unlines [ "<example>"
252+ , "Example line"
253+ , ""
254+ , "</example>"
255+ ] =?>
256+ codeBlock "Example line\n"
257+ ]
233258 , "Center" =: "<center>Hello, world</center>" =?> para (text "Hello, world")
234259 , "Right" =: "<right>Hello, world</right>" =?> para (text "Hello, world")
235260 , testGroup "Comments"