@@ -184,26 +184,26 @@ tests =
184184
185185 , testGroup "Images"
186186 [ "Image" =:
187− "[[./sunset.jpg]]" =?>
188− para (image "./sunset.jpg" "" "")
187+ "[[./sunset.jpg]]" =?>
188+ para (image "./sunset.jpg" "" "")
189189
190190 , "Image with explicit file: prefix" =:
191− "[[file:sunrise.jpg]]" =?>
192− para (image "sunrise.jpg" "" "")
191+ "[[file:sunrise.jpg]]" =?>
192+ para (image "sunrise.jpg" "" "")
193193
194194 , "Multiple images within a paragraph" =:
195− T.unlines [ "[[file:sunrise.jpg]]"
196− , "[[file:sunset.jpg]]"
197− ] =?>
198− para ((image "sunrise.jpg" "" "")
195+ T.unlines [ "[[file:sunrise.jpg]]"
196+ , "[[file:sunset.jpg]]"
197+ ] =?>
198+ para (image "sunrise.jpg" "" ""
199199 <> softbreak
200− <> (image "sunset.jpg" "" ""))
200+ <> image "sunset.jpg" "" "")
201201
202202 , "Image with html attributes" =:
203− T.unlines [ "#+ATTR_HTML: :width 50%"
204− , "[[file:guinea-pig.gif]]"
205− ] =?>
206− para (imageWith ("", [], [("width", "50%")]) "guinea-pig.gif" "" "")
203+ T.unlines [ "#+ATTR_HTML: :width 50%"
204+ , "[[file:guinea-pig.gif]]"
205+ ] =?>
206+ para (imageWith ("", [], [("width", "50%")]) "guinea-pig.gif" "" "")
207207 ]
208208
209209 , "Explicit link" =:
@@ -235,6 +235,10 @@ tests =
235235 "[[http://example.com][./logo.png]]" =?>
236236 para (link "http://example.com" "" (image "./logo.png" "" ""))
237237
238+ , "Link to image" =:
239+ "[[https://example.com/image.jpg][Look!]]" =?>
240+ para (link "https://example.com/image.jpg" "" (str "Look!"))
241+
238242 , "Plain link" =:
239243 "Posts on http://zeitlens.com/ can be funny at times." =?>
240244 para (spcSep [ "Posts", "on"