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);
|
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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue