diff --git a/src/markdown/rehype-image.ts b/src/markdown/rehype-image.ts index b4e7797f..1b336097 100644 --- a/src/markdown/rehype-image.ts +++ b/src/markdown/rehype-image.ts @@ -35,7 +35,8 @@ export const rehypeImage: Plugin, Root> = ({ if (isExternLink(url)) { if (!url.startsWith("https:") && IS_PROD) { - throw new Error(`External image url must start with https`) + console.error(`External image url must start with https: ${url}`) + url.replace(/^http:/, "https:") } return }