From 6c0e86d1444e401af2590287a86c1963043fee2e Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 5 Feb 2011 08:16:34 -0800 Subject: HTML writer: stringify alt text. Previously, if you had formatting in the label of an Image element, you'd get escaped HTML in the alt attribute. Now you just get a plain string version, which seems preferable. --- src/Tests/Writers/HTML.hs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Tests/Writers') diff --git a/src/Tests/Writers/HTML.hs b/src/Tests/Writers/HTML.hs index e13d0dc87..3e1e0ddc2 100644 --- a/src/Tests/Writers/HTML.hs +++ b/src/Tests/Writers/HTML.hs @@ -38,4 +38,9 @@ tests = [ testGroup "inline code" , "nolanguage" =: codeWith ("",["nolanguage"],[]) ">>=" =?> ">>=" ] + , testGroup "images" + [ "alt with formatting" =: + image "/url" "title" ("my " +++ emph "image") + =?> "\"my" + ] ] -- cgit v1.2.3