Muse reader: test that block level markup does not break <verbatim>

This commit is contained in:
Alexander Krotov 2019-02-06 02:25:24 +03:00
parent 37a82b0b11
commit 59fa4eb17e

View file

@ -226,6 +226,13 @@ tests =
, "Verbatim tag after text" =: "Foo <verbatim>bar</verbatim>" =?> para "Foo bar"
, "Verbatim tag escapes block level markup" =:
T.unlines [ "Foo <verbatim>bar"
, "* Not a heading"
, "</verbatim>baz"
] =?>
para "Foo bar\n* Not a heading\nbaz"
, "Class tag" =: "<class name=\"foo\">bar</class>" =?> para (spanWith ("", ["foo"], []) "bar")
, "Class tag without name" =: "<class>foobar</class>" =?> para (spanWith ("", [], []) "foobar")