From e881f67eb61b30e215f764c70e584677e620cca7 Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Fri, 3 Mar 2023 10:10:54 -0500 Subject: [PATCH] wip: forward slash?? --- packages/integrations/markdoc/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/integrations/markdoc/src/index.ts b/packages/integrations/markdoc/src/index.ts index 4c96d4ef2..2fc4021df 100644 --- a/packages/integrations/markdoc/src/index.ts +++ b/packages/integrations/markdoc/src/index.ts @@ -39,7 +39,7 @@ export default function markdoc(markdocConfig: Config = {}): AstroIntegration { validateRenderProperties(markdocConfig, config); const body = - getEntryInfo({ fileUrl: new URL(normalizePath(id), 'file://'), contents: code }).body; + getEntryInfo({ fileUrl: new URL('/' + normalizePath(id), 'file://'), contents: code }).body; const ast = Markdoc.parse(body); const content = Markdoc.transform(ast, markdocConfig);