Skip to content

Commit

Permalink
fix(view:codeblock:markmap): Actually mount the component in MDRC
Browse files Browse the repository at this point in the history
  • Loading branch information
SkepticMystic committed May 5, 2024
1 parent c618e1b commit caca012
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/codeblocks/MDRC.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { MarkdownRenderChild } from "obsidian";
import CodeblockErrors from "src/components/codeblocks/CodeblockErrors.svelte";
import CodeblockMarkmap from "src/components/codeblocks/CodeblockMarkmap.svelte";
import CodeblockMermaid from "src/components/codeblocks/CodeblockMermaid.svelte";
import CodeblockTree from "src/components/codeblocks/CodeblockTree.svelte";
import { log } from "src/logger";
Expand Down Expand Up @@ -105,6 +106,16 @@ export class CodeblockMDRC extends MarkdownRenderChild {
plugin: this.plugin,
},
});
} else if (options.type === "markmap") {
this.component = new CodeblockMarkmap({
target: this.containerEl,
props: {
errors,
options,
file_path,
plugin: this.plugin,
},
});
} else {
log.error("CodeblockMDRC unknown type", options.type);
}
Expand Down

0 comments on commit caca012

Please sign in to comment.