From 472ee72b526c153ca69f0508ee206dcd2288f693 Mon Sep 17 00:00:00 2001 From: Innei Date: Wed, 18 Jun 2025 14:11:47 +0800 Subject: [PATCH] fix(parse-html): add TypeScript ignore for math node handling - Added a TypeScript ignore comment for the `math` node in the `parseHtml` function to suppress type errors. This change ensures that the handling of math nodes does not interfere with TypeScript's type checking, allowing for smoother integration and functionality. These changes aim to improve the robustness of the HTML parsing logic while maintaining type safety. Signed-off-by: Innei --- .../layer/renderer/src/lib/parse-html.ts | 1 + packages/internal/shared/src/hono.ts | 380 +----------------- 2 files changed, 3 insertions(+), 378 deletions(-) diff --git a/apps/desktop/layer/renderer/src/lib/parse-html.ts b/apps/desktop/layer/renderer/src/lib/parse-html.ts index d1794174b..4397eb514 100644 --- a/apps/desktop/layer/renderer/src/lib/parse-html.ts +++ b/apps/desktop/layer/renderer/src/lib/parse-html.ts @@ -108,6 +108,7 @@ export const parseHtml = ( markInlineImage(node) return createElement("i", props, props.children) }, + // @ts-ignore math: Math, hr: ({ node, ...props }) => createElement("hr", { diff --git a/packages/internal/shared/src/hono.ts b/packages/internal/shared/src/hono.ts index 2d4913698..70d9b8dc3 100644 --- a/packages/internal/shared/src/hono.ts +++ b/packages/internal/shared/src/hono.ts @@ -17871,15 +17871,6 @@ declare const _routes: hono_hono_base.HonoBase