@@ -134,7 +134,9 @@ blockToDokuWiki opts (Para [Image txt (src,'f':'i':'g':':':tit)]) = do
134134 let opt = if null txt
135135 then ""
136136 else "|" ++ if null tit then capt else tit ++ capt
137− return $ "{{:" ++ src ++ opt ++ "}}\n"
137+ -- Relative links fail isURI and receive a colon
138+ prefix = if isURI src then "" else ":"
139+ return $ "{{" ++ prefix ++ src ++ opt ++ "}}\n"
138140
139141blockToDokuWiki opts (Para inlines) = do
140142 indent <- stIndent <$> ask
@@ -478,7 +480,9 @@ inlineToDokuWiki opts (Image alt (source, tit)) = do
478480 ("", []) -> ""
479481 ("", _ ) -> "|" ++ alt'
480482 (_ , _ ) -> "|" ++ tit
481− return $ "{{:" ++ source ++ txt ++ "}}"
483+ -- Relative links fail isURI and receive a colon
484+ prefix = if isURI source then "" else ":"
485+ return $ "{{" ++ prefix ++ source ++ txt ++ "}}"
482486
483487inlineToDokuWiki opts (Note contents) = do
484488 contents' <- blockListToDokuWiki opts contents