mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-23 19:06:31 +00:00
Convert inline svg as png if needed
This commit is contained in:
@@ -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);
|
||||
|
||||
Vendored
+10
-2
@@ -1,5 +1,13 @@
|
||||
|
||||
##
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
|
||||
## 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 %}
|
||||
|
||||
Reference in New Issue
Block a user