diff --git a/packages/integrations/markdoc/src/content-entry-type.ts b/packages/integrations/markdoc/src/content-entry-type.ts index 791def315a..ee3bfd80fd 100644 --- a/packages/integrations/markdoc/src/content-entry-type.ts +++ b/packages/integrations/markdoc/src/content-entry-type.ts @@ -334,6 +334,8 @@ async function emitOptimizedImages( } node.attributes[attributeName] = { ...src, fsPath }; + // Serve optimizedSrc as src + node.attributes.src = src.src; } } else { throw new MarkdocError({