diff --git a/quartz/components/Body.tsx b/quartz/components/Body.tsx index 96b627883..5461df452 100644 --- a/quartz/components/Body.tsx +++ b/quartz/components/Body.tsx @@ -1,13 +1,50 @@ // @ts-ignore import clipboardScript from "./scripts/clipboard.inline" import clipboardStyle from "./styles/clipboard.scss" +// @ts-ignore +import mermaidScript from "./scripts/mermaid.inline" +import mermaidStyle from "./styles/mermaid.scss" import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types" const Body: QuartzComponent = ({ children }: QuartzComponentProps) => { - return
{children}
+ return ( +
+ {children} +
+
+
+
+ +
+
+
+
+
+ ) } -Body.afterDOMLoaded = clipboardScript -Body.css = clipboardStyle +Body.afterDOMLoaded = clipboardScript + mermaidScript +Body.css = clipboardStyle + mermaidStyle export default (() => Body) satisfies QuartzComponentConstructor diff --git a/quartz/components/Mermaid.tsx b/quartz/components/Mermaid.tsx new file mode 100644 index 000000000..e69de29bb diff --git a/quartz/components/styles/mermaid.inline.scss b/quartz/components/styles/mermaid.scss similarity index 100% rename from quartz/components/styles/mermaid.inline.scss rename to quartz/components/styles/mermaid.scss