diff --git a/web/src/app/_components/markdown.tsx b/web/src/app/_components/markdown.tsx index 69b4e3f..b41f169 100644 --- a/web/src/app/_components/markdown.tsx +++ b/web/src/app/_components/markdown.tsx @@ -39,6 +39,10 @@ export function Markdown({ } return [rehypeKatex]; }, [animate]); + const handleImgError = (e: React.SyntheticEvent) => { + e.currentTarget.style.display = "none"; + console.warn(`Markdown: Image "${e.currentTarget.src}" failed to load`); + }; return (
), + img: ({ src, alt }) => ( + {alt} + ), }} {...props} >