From c90bc78d440d63b0ea2f62146edc54e88fb97c32 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 29 Jun 2011 14:17:12 -0400 Subject: 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. --- IkiWiki.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IkiWiki.pm') 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 ($;$) { -- cgit v1.2.3