From 2332b40595774cdc0c3d12573e4b0631c9707624 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 26 Dec 2007 10:49:15 -0500 Subject: * img: Avoid nesting images when linking to another image. Closes: #457780 --- IkiWiki/Plugin/img.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'IkiWiki/Plugin') diff --git a/IkiWiki/Plugin/img.pm b/IkiWiki/Plugin/img.pm index 14a32f635..9385f6417 100644 --- a/IkiWiki/Plugin/img.pm +++ b/IkiWiki/Plugin/img.pm @@ -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; -- cgit v1.2.3