wip: forward slash??
This commit is contained in:
parent
d93f5242df
commit
e881f67eb6
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue