summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ebook.js1
-rw-r--r--test/fixtures/test4/sub/PAGE.md12
2 files changed, 11 insertions, 2 deletions
diff --git a/test/ebook.js b/test/ebook.js
index 9e2dab6..38e6f13 100644
--- a/test/ebook.js
+++ b/test/ebook.js
@@ -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);
diff --git a/test/fixtures/test4/sub/PAGE.md b/test/fixtures/test4/sub/PAGE.md
index 094da59..f2ebc34 100644
--- a/test/fixtures/test4/sub/PAGE.md
+++ b/test/fixtures/test4/sub/PAGE.md
@@ -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 %}