diff --git a/quartz/components/Body.tsx b/quartz/components/Body.tsx
index 5461df452..cb418c562 100644
--- a/quartz/components/Body.tsx
+++ b/quartz/components/Body.tsx
@@ -7,41 +7,7 @@ import mermaidStyle from "./styles/mermaid.scss"
import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types"
const Body: QuartzComponent = ({ children }: QuartzComponentProps) => {
- return (
-
- )
+ return {children}
}
Body.afterDOMLoaded = clipboardScript + mermaidScript
diff --git a/quartz/components/Mermaid.tsx b/quartz/components/Mermaid.tsx
deleted file mode 100644
index e69de29bb..000000000
diff --git a/quartz/components/pages/Content.tsx b/quartz/components/pages/Content.tsx
index 8222d786e..bd808fc3b 100644
--- a/quartz/components/pages/Content.tsx
+++ b/quartz/components/pages/Content.tsx
@@ -1,11 +1,45 @@
import { htmlToJsx } from "../../util/jsx"
import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "../types"
-const Content: QuartzComponent = ({ fileData, tree }: QuartzComponentProps) => {
+const Content: QuartzComponent = ({ ctx, fileData, tree }: QuartzComponentProps) => {
const content = htmlToJsx(fileData.filePath!, tree)
const classes: string[] = fileData.frontmatter?.cssclasses ?? []
const classString = ["popover-hint", ...classes].join(" ")
- return {content}
+ return (
+ <>
+ {content}
+
+ >
+ )
}
export default (() => Content) satisfies QuartzComponentConstructor