fix #3184: Inject xlink in mermaidAPI. (#3185)

* fix #3184: Inject xlink in mermaidAPI.

* fix static analysis
This commit is contained in:
Sidharth Vinod
2022-07-03 14:07:27 +05:30
committed by GitHub
parent 1509ee68be
commit 5b15865d30
7 changed files with 2 additions and 6 deletions

View File

@@ -338,7 +338,6 @@ export const draw = function (text, id) {
? select(sandboxElement.nodes()[0].contentDocument.body)
: select('body');
const svg = root.select(`[id="${id}"]`);
svg.attr('xmlns:xlink', 'http://www.w3.org/1999/xlink');
// Run the renderer. This is what draws the final graph.
const element = root.select('#' + id + ' g');