From 028cdba5566e912a8d548348f7552e3dee748dfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20K=C5=82osko?= Date: Sat, 18 Mar 2023 23:13:18 +0100 Subject: [PATCH] Revert unnecessary mermaid workaround --- assets/js/lib/markdown.js | 9 --------- assets/package-lock.json | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/assets/js/lib/markdown.js b/assets/js/lib/markdown.js index f6ef10f2c..cd4fb66e4 100644 --- a/assets/js/lib/markdown.js +++ b/assets/js/lib/markdown.js @@ -50,8 +50,6 @@ class Markdown { // can use morphdom's childrenOnly option const wrappedHtml = `
${html}
`; 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; diff --git a/assets/package-lock.json b/assets/package-lock.json index 0012d83df..2ddc10a06 100644 --- a/assets/package-lock.json +++ b/assets/package-lock.json @@ -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": {