X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/622b866f3ee3d3b5fe76f913559a0afae66af001..9dbbbd0efacb5acebaed2d0ee74d1c185b27394a:/IkiWiki/Plugin/img.pm diff --git a/IkiWiki/Plugin/img.pm b/IkiWiki/Plugin/img.pm index 14a32f635..88a3d7b4d 100644 --- a/IkiWiki/Plugin/img.pm +++ b/IkiWiki/Plugin/img.pm @@ -106,9 +106,14 @@ sub preprocess (@) { #{{{ if (! defined $params{link} || lc($params{link}) eq 'yes') { return ''.$imgtag.''; } + elsif ($params{link} =~ /^\w+:\/\//) { + return ''.$imgtag.''; + } elsif (length bestlink($params{page}, $params{link})) { + add_depends($params{page}, $params{link}); return htmllink($params{page}, $params{destpage}, - $params{link}, linktext => $imgtag); + $params{link}, linktext => $imgtag, + noimageinline => 1); } else { return $imgtag;