Skip to content

Commit

Permalink
fix: actually use the functions I just added lol
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh committed Aug 20, 2024
1 parent 62c8616 commit 0aeb394
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/astro/src/vite-plugin-markdown/images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ export function getMarkdownCodeForImages(imagePaths: MarkdownImagePath[], html:
});
}
const html = updateImageReferences(${JSON.stringify(html)});
const html = async () => await updateImageReferences(${JSON.stringify(html)});
`;
}
6 changes: 3 additions & 3 deletions packages/astro/src/vite-plugin-markdown/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default function markdown({ settings, logger }: AstroPluginOptions): Plug
return ${JSON.stringify(raw.content)};
}
export async function compiledContent() {
return await html;
return await html();
}
export function getHeadings() {
return ${JSON.stringify(headings)};
Expand All @@ -148,9 +148,9 @@ export default function markdown({ settings, logger }: AstroPluginOptions): Plug
compiledContent,
'server:root': true,
}, {
'default': () => render\`\${unescapeHTML(html)}\`
'default': () => render\`\${unescapeHTML(html())}\`
})}\`;`
: `render\`\${maybeRenderHead(result)}\${unescapeHTML(html)}\`;`
: `render\`\${maybeRenderHead(result)}\${unescapeHTML(html())}\`;`
}
});
export default Content;
Expand Down

0 comments on commit 0aeb394

Please sign in to comment.