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 <tukon479@gmail.com>
This commit is contained in:
Innei 2025-06-18 14:11:47 +08:00
parent 7e3e1c73c6
commit 472ee72b52
No known key found for this signature in database
GPG Key ID: 0F62D33977F021F7
2 changed files with 3 additions and 378 deletions

View File

@ -108,6 +108,7 @@ export const parseHtml = (
markInlineImage(node)
return createElement("i", props, props.children)
},
// @ts-ignore
math: Math,
hr: ({ node, ...props }) =>
createElement("hr", {

View File

@ -17871,15 +17871,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
} | null | undefined;
tipUsers?: {
id: string;
@ -17890,15 +17881,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
}[] | null | undefined;
} | undefined;
list?: {
@ -17932,15 +17914,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
} | null | undefined;
tipUsers?: {
id: string;
@ -17951,15 +17924,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
}[] | null | undefined;
}[] | undefined;
ownerUserId?: string | null | undefined;
@ -17972,15 +17936,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
} | null | undefined;
} | undefined;
docs?: string | undefined;
@ -18090,15 +18045,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
} | null | undefined;
tipUsers?: {
id: string;
@ -18109,15 +18055,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
}[] | null | undefined;
}[];
};
@ -18198,15 +18135,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
} | null | undefined;
};
read: boolean | null;
@ -18303,15 +18231,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
} | null | undefined;
};
} | undefined;
@ -18473,15 +18392,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
} | null | undefined;
tipUsers?: {
id: string;
@ -18492,15 +18402,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
}[] | null | undefined;
};
read: boolean | null;
@ -18599,15 +18500,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
} | null | undefined;
tipUsers?: {
id: string;
@ -18618,15 +18510,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
}[] | null | undefined;
};
} | undefined;
@ -18783,15 +18666,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
} | null | undefined;
tipUsers?: {
id: string;
@ -18802,15 +18676,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
}[] | null | undefined;
};
tipAmount: number;
@ -18888,15 +18753,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
} | null | undefined;
tipUsers?: {
id: string;
@ -18907,15 +18763,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
}[] | null | undefined;
};
readCount: number;
@ -19304,15 +19151,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
} | null | undefined;
tipUsers?: {
id: string;
@ -19323,15 +19161,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
}[] | null | undefined;
};
feedId: string;
@ -19397,15 +19226,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
} | null | undefined;
tipUsers?: {
id: string;
@ -19416,15 +19236,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
}[] | null | undefined;
}[] | undefined;
ownerUserId?: string | null | undefined;
@ -19437,15 +19248,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
} | null | undefined;
};
listId: string;
@ -19475,15 +19277,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
} | null | undefined;
};
inboxId: string;
@ -19840,15 +19633,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
} | null | undefined;
tipUsers?: {
id: string;
@ -19859,15 +19643,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
}[] | null | undefined;
} | null | undefined;
}[];
@ -20064,15 +19839,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
} | null | undefined;
tipUsers?: {
id: string;
@ -20083,15 +19849,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
}[] | null | undefined;
};
language: string | null;
@ -20157,15 +19914,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
} | null | undefined;
tipUsers?: {
id: string;
@ -20176,15 +19924,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
}[] | null | undefined;
}[] | undefined;
ownerUserId?: string | null | undefined;
@ -20197,15 +19936,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
} | null | undefined;
};
readCount: number;
@ -20273,15 +20003,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
} | null | undefined;
tipUsers?: {
id: string;
@ -20292,15 +20013,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
}[] | null | undefined;
}[] | undefined;
ownerUserId?: string | null | undefined;
@ -20313,15 +20025,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
} | null | undefined;
};
};
@ -20405,15 +20108,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
} | null | undefined;
tipUsers?: {
id: string;
@ -20424,15 +20118,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
}[] | null | undefined;
}[] | undefined;
ownerUserId?: string | null | undefined;
@ -20446,15 +20131,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
} | null | undefined;
purchaseAmount?: number | undefined;
}[];
@ -20497,15 +20173,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
} | null | undefined;
tipUsers?: {
id: string;
@ -20516,15 +20183,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
}[] | null | undefined;
}[];
};
@ -20579,6 +20237,8 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
input: {
json: {
type: string;
nsfw?: boolean | undefined;
feedId?: string | undefined;
};
};
output: {
@ -20649,15 +20309,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
} | null | undefined;
};
};
@ -20793,15 +20444,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
} | null | undefined;
}[];
};
@ -21245,15 +20887,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
} | null | undefined;
tipUsers?: {
id: string;
@ -21264,15 +20897,6 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
createdAt: string;
updatedAt: string;
suspended: boolean | null;
bio: string | null;
website: string | null;
socialLinks: {
twitter: string;
github: string;
instagram: string;
facebook: string;
youtube: string;
} | null;
}[] | null | undefined;
};
analytics: {