]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/img.pm
* img: Avoid nesting images when linking to another image. Closes: #457780
[git.ikiwiki.info.git] / IkiWiki / Plugin / img.pm
index 14a32f63542fb827e40ff926771982436e02f59a..9385f64172024d45a7c71fb618ac5d0358dae45b 100644 (file)
@@ -108,7 +108,8 @@ sub preprocess (@) { #{{{
        }
        elsif (length bestlink($params{page}, $params{link})) {
                return htmllink($params{page}, $params{destpage},
-                       $params{link}, linktext => $imgtag);
+                       $params{link}, linktext => $imgtag,
+                       noimageinline => 1);
        }
        else {
                return $imgtag;