From 8691e95f12a6b6ed910a801cb80752c617caa518 Mon Sep 17 00:00:00 2001 From: Hk-Gosuto Date: Mon, 12 Feb 2024 22:10:31 +0800 Subject: [PATCH] fix: #188 --- app/components/exporter.tsx | 1 + 1 file changed, 1 insertion(+) 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})`; },