chore: fix import in web app html-render

This commit is contained in:
Stephen Zhou 2025-06-18 16:52:29 +08:00
parent 8f66d91ce1
commit c5bb56372a
No known key found for this signature in database
1 changed files with 1 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import { MemoedDangerousHTMLStyle } from "@follow/components/common/MemoedDangerousHTMLStyle.jsx"
import { Checkbox } from "@follow/components/ui/checkbox/index.jsx"
import { parseHtml as parseHtmlGeneral } from "@follow/components/ui/markdown/parse-html.js"
import { parseHtml as parseHtmlGeneral } from "@follow/utils/html"
import type { Components } from "hast-util-to-jsx-runtime"
import { createElement } from "react"
import { renderToString } from "react-dom/server"
@ -65,7 +65,6 @@ export const parseHtml = (
return createElement(MarkdownP, props, props.children)
},
// @ts-expect-error
math: Math,
hr: ({ node, ...props }) =>
createElement("hr", {