mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-05-12 07:08:26 -05:00
refactor(mermaid): stop using deprecated APIs
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -142,7 +142,10 @@ export default class ReadOnlyTextTypeWidget extends AbstractTextTypeWidget {
|
||||
|
||||
// Initialize mermaid
|
||||
const mermaid = (await import("mermaid")).default;
|
||||
mermaid.init(getMermaidConfig(), this.$content.find(".mermaid-diagram")[0]);
|
||||
mermaid.initialize(getMermaidConfig());
|
||||
mermaid.run({
|
||||
nodes: this.$content.find(".mermaid-diagram")
|
||||
});
|
||||
}
|
||||
|
||||
async refreshIncludedNoteEvent({ noteId }: EventData<"refreshIncludedNote">) {
|
||||
|
||||
Reference in New Issue
Block a user