diff options
author | Joey Hess <joey@kitenet.net> | 2007-12-26 10:49:15 -0500 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2007-12-26 10:49:15 -0500 |
commit | 2332b40595774cdc0c3d12573e4b0631c9707624 (patch) | |
tree | 046e1abcc36004de784e98debe66412263b2e845 /IkiWiki | |
parent | 7a4181e8ebd18b53eb2fd8bdf9235923a5bbf91c (diff) | |
download | ikiwiki-2332b40595774cdc0c3d12573e4b0631c9707624.tar ikiwiki-2332b40595774cdc0c3d12573e4b0631c9707624.tar.gz |
* img: Avoid nesting images when linking to another image. Closes: #457780
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/img.pm | 3 |
1 files changed, 2 insertions, 1 deletions
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; |