Convert inline svg as png if needed

This commit is contained in:
Samy Pessé
2015-01-29 18:16:23 +01:00
parent c8e72092c7
commit 5fc0c6b507
4 changed files with 53 additions and 6 deletions
+1
View File
@@ -27,6 +27,7 @@ describe('eBook Generator', function () {
assert(pageContent.indexOf('src="../test.png"') >= 0);
assert(pageContent.indexOf('src="../NewTux.png"') >= 0);
assert(pageContent.indexOf('<svg') < 0);
assert(readmeContent.indexOf('src="test.png"') >= 0);
assert(readmeContent.indexOf('src="NewTux.png"') >= 0);
+10 -2
View File
@@ -1,5 +1,13 @@
##
![test image to be converted](../test.svg)
![test url](http://upload.wikimedia.org/wikipedia/commons/b/b0/NewTux.svg)
![test image to be converted, second use](../test.svg)
## Inline svg
{% html %}
<svg width="400" height="110">
<rect width="300" height="100" style="fill:rgb(0,0,255);stroke-width:3;stroke:rgb(0,0,0)">
</svg>
{% endhtml %}