diff --git a/packages/integrations/markdoc/src/content-entry-type.ts b/packages/integrations/markdoc/src/content-entry-type.ts index 22c6c33b4724..451bbb3a753e 100644 --- a/packages/integrations/markdoc/src/content-entry-type.ts +++ b/packages/integrations/markdoc/src/content-entry-type.ts @@ -341,6 +341,8 @@ async function emitOptimizedImages( globalThis.astroAsset.referencedImages.add(fsPath); } node.attributes[attributeName] = { ...src, fsPath }; + node.attributes.src = src.src; + } } else { throw new MarkdocError({