From 9cd072bfc336f3eeb453c279dc3953e2a7e3d9fd Mon Sep 17 00:00:00 2001
From: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Wed, 02 Oct 2024 08:41:50 +0000
Subject: [PATCH] chore(deps): bump hast-util-to-string from 3.0.0 to 3.0.1 (#1466)

---
 quartz/util/jsx.tsx |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/quartz/util/jsx.tsx b/quartz/util/jsx.tsx
index e813240..b525423 100644
--- a/quartz/util/jsx.tsx
+++ b/quartz/util/jsx.tsx
@@ -1,5 +1,4 @@
-import { Components, toJsxRuntime } from "hast-util-to-jsx-runtime"
-import { QuartzPluginData } from "../plugins/vfile"
+import { Components, Jsx, toJsxRuntime } from "hast-util-to-jsx-runtime"
 import { Node, Root } from "hast"
 import { Fragment, jsx, jsxs } from "preact/jsx-runtime"
 import { trace } from "./trace"
@@ -13,13 +12,12 @@
   ),
 }
 
-export function htmlToJsx(fp: FilePath, tree: Node<QuartzPluginData>) {
+export function htmlToJsx(fp: FilePath, tree: Node) {
   try {
-    // @ts-ignore (preact makes it angry)
     return toJsxRuntime(tree as Root, {
       Fragment,
-      jsx,
-      jsxs,
+      jsx: jsx as Jsx,
+      jsxs: jsxs as Jsx,
       elementAttributeNameCase: "html",
       components: customComponents,
     })

--
Gitblit v1.10.0