diff options
author | 2022-07-25 19:17:18 +0000 | |
---|---|---|
committer | 2022-07-25 19:17:18 +0000 | |
commit | 813d3927172e530361be43037e29bc37e4ff76f2 (patch) | |
tree | c6842e64fc9c6f3842f041d22216285a0e2236b6 | |
parent | c811be49abf17b151e04b9a63126267065f53b3f (diff) | |
download | astro-813d3927172e530361be43037e29bc37e4ff76f2.tar.gz astro-813d3927172e530361be43037e29bc37e4ff76f2.tar.zst astro-813d3927172e530361be43037e29bc37e4ff76f2.zip |
[ci] format
-rw-r--r-- | packages/astro/src/vite-plugin-markdown/index.ts | 12 |
1 files 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 f48168521..72821b358 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 = `--- |