From b9d8fdd95ae9fc6c08603af027d1b2a602cd4ddf Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Tue, 17 Feb 2026 21:05:01 +0200 Subject: [PATCH] Fix crash with img tag in markdown --- app/components/Markdown.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/components/Markdown.tsx b/app/components/Markdown.tsx index ed06ad41e..d44ed1a42 100644 --- a/app/components/Markdown.tsx +++ b/app/components/Markdown.tsx @@ -23,7 +23,12 @@ export function Markdown({ children }: { children: string }) { br: { component: () =>
}, hr: { component: () =>
}, img: { - component: (props: React.ComponentProps<"img">) => ( + component: ({ + children: _, + ...props + }: React.ComponentProps<"img"> & { + children?: React.ReactNode; + }) => ( // biome-ignore lint/a11y/useAltText: parsed markdown, so we can't guarantee alt text is present ),