From 5ec4947a822b4c9d6167e132477c1e66f7191840 Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Fri, 9 Jul 2021 11:20:00 -0500 Subject: [PATCH] fix: pass content to mdc Layout --- packages/astro/src/compiler/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}