diff options
author | Joey Hess <joey@kitenet.net> | 2011-06-29 14:17:12 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-06-29 14:17:47 -0400 |
commit | c90bc78d440d63b0ea2f62146edc54e88fb97c32 (patch) | |
tree | 95d0dfd38bf3a5c088b0871f667d55901efb8221 /IkiWiki.pm | |
parent | 4272e1e56d1ebd82d50473f4d68565a1dd8f2c89 (diff) | |
download | ikiwiki-c90bc78d440d63b0ea2f62146edc54e88fb97c32.tar ikiwiki-c90bc78d440d63b0ea2f62146edc54e88fb97c32.tar.gz |
Support svg as a inlinable image type
svg images can be included on a page by simply linking to them, or by using
the img directive. Note that sanitizing svg files is still not addressed.
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r-- | IkiWiki.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index 766226338..7035cb034 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -1026,7 +1026,7 @@ sub bestlink ($$) { sub isinlinableimage ($) { my $file=shift; - return $file =~ /\.(png|gif|jpg|jpeg)$/i; + return $file =~ /\.(png|gif|jpg|jpeg|svg)$/i; } sub pagetitle ($;$) { |