From 813d3927172e530361be43037e29bc37e4ff76f2 Mon Sep 17 00:00:00 2001 From: matthewp Date: Mon, 25 Jul 2022 19:17:18 +0000 Subject: [PATCH 1/2] [ci] format --- packages/astro/src/vite-plugin-markdown/index.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/astro/src/vite-plugin-markdown/index.ts b/packages/astro/src/vite-plugin-markdown/index.ts index f481685213bb..72821b3580e8 100644 --- a/packages/astro/src/vite-plugin-markdown/index.ts +++ b/packages/astro/src/vite-plugin-markdown/index.ts @@ -6,16 +6,16 @@ import matter from 'gray-matter'; import { fileURLToPath } from 'url'; import type { Plugin } from 'vite'; import type { AstroConfig } from '../@types/astro'; -import type { LogOptions } from '../core/logger/core.js'; import { pagesVirtualModuleId } from '../core/app/index.js'; import { collectErrorMetadata } from '../core/errors.js'; +import type { LogOptions } from '../core/logger/core.js'; +import { warn } from '../core/logger/core.js'; import { resolvePages } from '../core/util.js'; import { cachedCompilation, CompileProps } from '../vite-plugin-astro/compile.js'; import { getViteTransform, TransformHook } from '../vite-plugin-astro/styles.js'; import type { PluginMetadata as AstroPluginMetadata } from '../vite-plugin-astro/types'; import { PAGE_SSR_SCRIPT_ID } from '../vite-plugin-scripts/index.js'; import { getFileInfo } from '../vite-plugin-utils/index.js'; -import { warn } from '../core/logger/core.js'; interface AstroPluginOptions { config: AstroConfig; @@ -175,8 +175,12 @@ export default function markdown({ config, logging }: AstroPluginOptions): Plugi content.file = filename; // Warn when attempting to use setup without the legacy flag - if(setup && !isAstroFlavoredMd) { - warn(logging, 'markdown', `The setup: property in frontmatter only works with the legacy.astroFlavoredMarkdown flag enabled.`); + if (setup && !isAstroFlavoredMd) { + warn( + logging, + 'markdown', + `The setup: property in frontmatter only works with the legacy.astroFlavoredMarkdown flag enabled.` + ); } const prelude = `--- From ab8f4901a259c78534823e7bd22c4f768683ae4b Mon Sep 17 00:00:00 2001 From: Sarah Rainsberger Date: Mon, 25 Jul 2022 16:39:58 -0300 Subject: [PATCH 2/2] [docs content] use "version" not since (#4043) * [docs content] use "version" not since Change to use `@version` to create the `` component for docs. (not `@since) Also, quick sentence edit. * Update packages/astro/src/@types/astro.ts Co-authored-by: Nate Moore --- packages/astro/src/@types/astro.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts index d4ee10dd4ad3..5003f42ab9c8 100644 --- a/packages/astro/src/@types/astro.ts +++ b/packages/astro/src/@types/astro.ts @@ -710,7 +710,7 @@ export interface AstroUserConfig { * @name Legacy Flags * @description * To help some users migrate between versions of Astro, we occasionally introduce `legacy` flags. - * These flags let you to opt-in to some deprecated or otherwise outdated behavior of Astro + * These flags allow you to opt in to some deprecated or otherwise outdated behavior of Astro * in the latest version, so that you can continue to upgrade and take advantage of new Astro releases. */ legacy?: { @@ -719,7 +719,7 @@ export interface AstroUserConfig { * @name legacy.astroFlavoredMarkdown * @type {boolean} * @default `false` - * @since 1.0.0-rc + * @version 1.0.0-rc.1 * @description * Enable Astro's pre-v1.0 support for components and JSX expressions in `.md` Markdown files. * In Astro `1.0.0-rc`, this original behavior was removed as the default, in favor of our new [MDX integration](/en/guides/integrations-guide/mdx/).