diff --git a/packages/astro/src/compiler/index.ts b/packages/astro/src/compiler/index.ts index 65540c235..98576634d 100644 --- a/packages/astro/src/compiler/index.ts +++ b/packages/astro/src/compiler/index.ts @@ -93,10 +93,10 @@ export async function convertMdcToAstroSource(contents: string, { filename }: { import { Markdown } from 'astro/components'; ${components ? `import { ${Array.from(componentNames.values()).join(', ')} } from '${components}';` : ''} ${layout ? `import Layout from '${layout}';` : 'const Layout = Fragment;'} -const frontmatter = ${stringifiedSetupContext}; +const content = ${stringifiedSetupContext}; --- - + ${markdownContent}