diff --git a/examples/with-tailwindcss/src/pages/markdown-page.md b/examples/with-tailwindcss/src/pages/markdown-page.md index 9aa98ffa9..19323294c 100644 --- a/examples/with-tailwindcss/src/pages/markdown-page.md +++ b/examples/with-tailwindcss/src/pages/markdown-page.md @@ -1,10 +1,10 @@ --- -title: "Markdown + Tailwind" +title: 'Markdown + Tailwind' setup: | - import Button from '../components/Button.astro'; + import Button from '../components/Button.astro'; ---
\ No newline at end of file + diff --git a/packages/astro/src/core/build/generate.ts b/packages/astro/src/core/build/generate.ts index 166c82cdf..d3d2365b4 100644 --- a/packages/astro/src/core/build/generate.ts +++ b/packages/astro/src/core/build/generate.ts @@ -17,7 +17,6 @@ import { getOutFile, getOutFolder, getOutRoot } from './common.js'; import type { PageBuildData, StaticBuildOptions } from './types'; import { getTimeStat } from './util.js'; - // Render is usually compute, which Node.js can't parallelize well. // In real world testing, dropping from 10->1 showed a notiable perf // improvement. In the future, we can revisit a smarter parallel diff --git a/packages/astro/src/vite-plugin-markdown/index.ts b/packages/astro/src/vite-plugin-markdown/index.ts index b74c3f173..c3c75b93d 100644 --- a/packages/astro/src/vite-plugin-markdown/index.ts +++ b/packages/astro/src/vite-plugin-markdown/index.ts @@ -46,7 +46,7 @@ export default function markdown({ config }: AstroPluginOptions): Plugin { const filename = normalizeFilename(id); const fileUrl = new URL(`file://${filename}`); const isPage = fileUrl.pathname.startsWith(config.pages.pathname); - const hasInjectedScript = (isPage && config._ctx.scripts.some((s) => s.stage === 'page-ssr')); + const hasInjectedScript = isPage && config._ctx.scripts.some((s) => s.stage === 'page-ssr'); // Extract special frontmatter keys const { layout = '', components = '', setup = '', ...content } = frontmatter; @@ -68,7 +68,6 @@ ${setup}`.trim(); astroResult = `${prelude}\n${astroResult}`; } - // Transform from `.astro` to valid `.ts` let { code: tsResult } = await transform(astroResult, { pathname: fileUrl.pathname.substr(config.projectRoot.pathname.length - 1),