wip: forward slash??

This commit is contained in:
bholmesdev 2023-03-03 10:10:54 -05:00
parent d93f5242df
commit e881f67eb6

View file

@ -39,7 +39,7 @@ export default function markdoc(markdocConfig: Config = {}): AstroIntegration {
validateRenderProperties(markdocConfig, config); validateRenderProperties(markdocConfig, config);
const body = 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 ast = Markdoc.parse(body);
const content = Markdoc.transform(ast, markdocConfig); const content = Markdoc.transform(ast, markdocConfig);