diff --git a/app/components/exporter.tsx b/app/components/exporter.tsx index 1c2cdf0c4..1b9cc031c 100644 --- a/app/components/exporter.tsx +++ b/app/components/exporter.tsx @@ -519,6 +519,7 @@ export function ImagePreviewer(props: { const updatedContent = markdownContent.replace( /!\[.*?\]\((.*?)\)/g, (match, url) => { + if (!url.startsWith("http")) return `![image](${url})`; const updatedURL = `/api/cors?url=${encodeURIComponent(url)}`; return `![image](${updatedURL})`; },