mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-20 07:49:43 +02:00
Added proper SVG namespace attribute
This commit is contained in:
@@ -41,7 +41,7 @@ var init = function () {
|
||||
txt = txt.replace(/</g,'<');
|
||||
txt = he.decode(txt).trim();
|
||||
|
||||
element.innerHTML = '<svg id="' + id + '" width="100%">' +
|
||||
element.innerHTML = '<svg id="' + id + '" width="100%" xmlns="http://www.w3.org/2000/svg">' +
|
||||
'<g />' +
|
||||
'</svg>';
|
||||
|
||||
|
Reference in New Issue
Block a user