Revert unnecessary mermaid workaround

This commit is contained in:
Jonatan Kłosko 2023-03-18 23:13:18 +01:00
parent 7eefd32a2d
commit 028cdba556
2 changed files with 1 additions and 10 deletions

View file

@ -50,8 +50,6 @@ class Markdown {
// can use morphdom's childrenOnly option
const wrappedHtml = `<div>${html}</div>`;
morphdom(this.container, wrappedHtml, { childrenOnly: true });
this._fixMermaidSpacing();
});
}
@ -90,13 +88,6 @@ class Markdown {
})
);
}
_fixMermaidSpacing() {
// A workaround for https://github.com/mermaid-js/mermaid/issues/1758
for (const svg of this.container.querySelectorAll(".mermaid svg")) {
svg.removeAttribute("height");
}
}
}
export default Markdown;

View file

@ -63,7 +63,7 @@
"version": "3.3.0"
},
"../deps/phoenix_live_view": {
"version": "0.18.15",
"version": "0.18.18",
"license": "MIT"
},
"node_modules/@ampproject/remapping": {