X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/59ef1ebe5dbe10b48024f48f665dceef8d735a88..cfc5d5d9ed1a5c76212fecd592639aaa3de9b784:/doc/bugs/SVG_files_not_recognized_as_images.mdwn?ds=inline diff --git a/doc/bugs/SVG_files_not_recognized_as_images.mdwn b/doc/bugs/SVG_files_not_recognized_as_images.mdwn index 41452e7c1..b14cd9b94 100644 --- a/doc/bugs/SVG_files_not_recognized_as_images.mdwn +++ b/doc/bugs/SVG_files_not_recognized_as_images.mdwn @@ -12,4 +12,28 @@ The 'img' plugin also seems to not support SVGs. > the only options seem to be only supporting svgs on wikis that do not > sanitize their html, or assuming that svgs are trusted content and > embedding them inline. None of which seem particularly palatable. +> +> I suppose the other option would be converting the svg file to a static +> image (png). The img plugin could probably do that fairly simply. > --[[Joey]] + +>> This seems to have improved since; at least chromium can display svg +>> images from `` tags. Firefox 3.5.19 did not in my testing. +>> +>> So, svgs can now be included on pages by linking to them, or by using +>> the img directive. The most portable thing is to use the img directive +>> plus some size, which forces them to be resized and a png to actually +>> be displayed. +>> +>> I have not yet tried to do anything with sanitizing them. --[[Joey]] + +>> I'm working on inline SVG and MathML support in ikiwiki and I've +>> modified my htmlscrubber to sanitize SVG and MathML using the +>> whitelists from html5lib. Here's a [patch][]. I've also made some +>> notes about this here: [[todo/svg]]. +>> +>> I suspect that this bug may have caught the eye of anyone interested +>> in this sort of thing. I'll elaborate a bit on my user page to avoid +>> getting off-topic here. --[[JasonBlevins]], October 21, 2008 + + [patch]: http://xbeta.org/gitweb/?p=xbeta/ikiwiki.git;a=blobdiff;f=IkiWiki/Plugin/htmlscrubber.pm;h=3c0ddc8f25bd8cb863634a9d54b40e299e60f7df;hp=3bdaccea119ec0e1b289a0da2f6d90e2219b8d66;hb=fe333c8e5b4a5f374a059596ee698dacd755182d;hpb=be0b4f603f918444b906e42825908ddac78b7073