mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-11-10 14:11:29 +08:00
Revert unnecessary mermaid workaround
This commit is contained in:
parent
7eefd32a2d
commit
028cdba556
2 changed files with 1 additions and 10 deletions
|
|
@ -50,8 +50,6 @@ class Markdown {
|
||||||
// can use morphdom's childrenOnly option
|
// can use morphdom's childrenOnly option
|
||||||
const wrappedHtml = `<div>${html}</div>`;
|
const wrappedHtml = `<div>${html}</div>`;
|
||||||
morphdom(this.container, wrappedHtml, { childrenOnly: true });
|
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;
|
export default Markdown;
|
||||||
|
|
|
||||||
2
assets/package-lock.json
generated
2
assets/package-lock.json
generated
|
|
@ -63,7 +63,7 @@
|
||||||
"version": "3.3.0"
|
"version": "3.3.0"
|
||||||
},
|
},
|
||||||
"../deps/phoenix_live_view": {
|
"../deps/phoenix_live_view": {
|
||||||
"version": "0.18.15",
|
"version": "0.18.18",
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/@ampproject/remapping": {
|
"node_modules/@ampproject/remapping": {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue