@@ -219,12 +219,12 @@ tests =
219 (para $ link "" "" "New Link")
219 (para $ link "" "" "New Link")
221 , "Image link" =:
221 , "Image link" =:
222− "[[sunset.png][dusk.svg]]" =?>
222+ "[[sunset.png][file:dusk.svg]]" =?>
223 (para $ link "sunset.png" "" (image "dusk.svg" "" ""))
223 (para $ link "sunset.png" "" (image "dusk.svg" "" ""))
225 , "Image link with non-image target" =:
225 , "Image link with non-image target" =:
226− "[[http://example.com][logo.png]]" =?>
226+ "[[http://example.com][./logo.png]]" =?>
227− (para $ link "http://example.com" "" (image "logo.png" "" ""))
227+ (para $ link "http://example.com" "" (image "./logo.png" "" ""))
229 , "Plain link" =:
229 , "Plain link" =:
230 "Posts on http://zeitlens.com/ can be funny at times." =?>
230 "Posts on http://zeitlens.com/ can be funny at times." =?>
@@ -810,29 +810,29 @@ tests =
810 [ "Figure" =:
810 [ "Figure" =:
811 unlines [ "#+caption: A very courageous man."
811 unlines [ "#+caption: A very courageous man."
812 , "#+name: goodguy"
812 , "#+name: goodguy"
813− , "[[edward.jpg]]"
813+ , "[[file:edward.jpg]]"
815 para (image "edward.jpg" "fig:goodguy" "A very courageous man.")
815 para (image "edward.jpg" "fig:goodguy" "A very courageous man.")
817 , "Figure with no name" =:
817 , "Figure with no name" =:
818 unlines [ "#+caption: I've been through the desert on this"
818 unlines [ "#+caption: I've been through the desert on this"
819− , "[[horse.png]]"
819+ , "[[file:horse.png]]"
821 para (image "horse.png" "fig:" "I've been through the desert on this")
821 para (image "horse.png" "fig:" "I've been through the desert on this")
823 , "Figure with `fig:` prefix in name" =:
823 , "Figure with `fig:` prefix in name" =:
824 unlines [ "#+caption: Used as a metapher in evolutionary biology."
824 unlines [ "#+caption: Used as a metapher in evolutionary biology."
825 , "#+name: fig:redqueen"
825 , "#+name: fig:redqueen"
826− , "[[the-red-queen.jpg]]"
826+ , "[[./the-red-queen.jpg]]"
828− para (image "the-red-queen.jpg" "fig:redqueen"
828+ para (image "./the-red-queen.jpg" "fig:redqueen"
829 "Used as a metapher in evolutionary biology.")
829 "Used as a metapher in evolutionary biology.")
831 , "Figure with HTML attributes" =:
831 , "Figure with HTML attributes" =:
832 unlines [ "#+CAPTION: mah brain just explodid"
832 unlines [ "#+CAPTION: mah brain just explodid"
833 , "#+NAME: lambdacat"
833 , "#+NAME: lambdacat"
834 , "#+ATTR_HTML: :style color: blue :role button"
834 , "#+ATTR_HTML: :style color: blue :role button"
835− , "[[lambdacat.jpg]]"
835+ , "[[file:lambdacat.jpg]]"
837 let kv = [("style", "color: blue"), ("role", "button")]
837 let kv = [("style", "color: blue"), ("role", "button")]
838 name = "fig:lambdacat"
838 name = "fig:lambdacat"
@@ -842,7 +842,7 @@ tests =
842 , "Labelled figure" =:
842 , "Labelled figure" =:
843 unlines [ "#+CAPTION: My figure"
843 unlines [ "#+CAPTION: My figure"
844 , "#+LABEL: fig:myfig"
844 , "#+LABEL: fig:myfig"
845− , "[[blub.png]]"
845+ , "[[file:blub.png]]"
847 let attr = ("fig:myfig", mempty, mempty)
847 let attr = ("fig:myfig", mempty, mempty)
848 in para (imageWith attr "blub.png" "fig:" "My figure")
848 in para (imageWith attr "blub.png" "fig:" "My figure")