From 447d2efaffafacc907e651931344b08d53388489 Mon Sep 17 00:00:00 2001 From: natemoo-re Date: Fri, 19 Nov 2021 19:51:00 +0000 Subject: [PATCH] [ci] yarn format --- packages/astro/src/vite-plugin-markdown/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/astro/src/vite-plugin-markdown/index.ts b/packages/astro/src/vite-plugin-markdown/index.ts index fadea3f3d5..b3494e126c 100644 --- a/packages/astro/src/vite-plugin-markdown/index.ts +++ b/packages/astro/src/vite-plugin-markdown/index.ts @@ -42,8 +42,8 @@ ${components ? `import * from '${components}';` : ''} ${setup} const $$content = ${JSON.stringify(content)} ---`; - const imports = `${layout ? `import Layout from '${layout}';` : ''} -${setup}`.trim() + const imports = `${layout ? `import Layout from '${layout}';` : ''} +${setup}`.trim(); // If the user imported "Layout", wrap the content in a Layout if (/\bLayout\b/.test(imports)) { astroResult = `${prelude}\n\n\n${astroResult}\n\n`;