diff --git a/js/ImageParser.js b/js/ImageParser.js index efe424a02..d23d147ab 100644 --- a/js/ImageParser.js +++ b/js/ImageParser.js @@ -20,7 +20,7 @@ var ImageParser = function(options) { ImageParser.prototype.parse = function(type,text) { var src; - if(type === "image/svg+xml") { + if(type === "image/svg+xml" || type === ".svg") { src = "data:" + type + "," + encodeURIComponent(text); } else { src = "data:" + type + ";base64," + text; diff --git a/tiddlywiki5/tiddlers/TypedBlockTests.tid b/tiddlywiki5/tiddlers/TypedBlockTests.tid index e4b408940..207abaf34 100644 --- a/tiddlywiki5/tiddlers/TypedBlockTests.tid +++ b/tiddlywiki5/tiddlers/TypedBlockTests.tid @@ -26,7 +26,7 @@ $$$ This renders as: -$$$image/svg+xml +$$$.svg