mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
[ci] format
This commit is contained in:
parent
c811be49ab
commit
813d392717
1 changed files with 8 additions and 4 deletions
|
@ -6,16 +6,16 @@ import matter from 'gray-matter';
|
||||||
import { fileURLToPath } from 'url';
|
import { fileURLToPath } from 'url';
|
||||||
import type { Plugin } from 'vite';
|
import type { Plugin } from 'vite';
|
||||||
import type { AstroConfig } from '../@types/astro';
|
import type { AstroConfig } from '../@types/astro';
|
||||||
import type { LogOptions } from '../core/logger/core.js';
|
|
||||||
import { pagesVirtualModuleId } from '../core/app/index.js';
|
import { pagesVirtualModuleId } from '../core/app/index.js';
|
||||||
import { collectErrorMetadata } from '../core/errors.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 { resolvePages } from '../core/util.js';
|
||||||
import { cachedCompilation, CompileProps } from '../vite-plugin-astro/compile.js';
|
import { cachedCompilation, CompileProps } from '../vite-plugin-astro/compile.js';
|
||||||
import { getViteTransform, TransformHook } from '../vite-plugin-astro/styles.js';
|
import { getViteTransform, TransformHook } from '../vite-plugin-astro/styles.js';
|
||||||
import type { PluginMetadata as AstroPluginMetadata } from '../vite-plugin-astro/types';
|
import type { PluginMetadata as AstroPluginMetadata } from '../vite-plugin-astro/types';
|
||||||
import { PAGE_SSR_SCRIPT_ID } from '../vite-plugin-scripts/index.js';
|
import { PAGE_SSR_SCRIPT_ID } from '../vite-plugin-scripts/index.js';
|
||||||
import { getFileInfo } from '../vite-plugin-utils/index.js';
|
import { getFileInfo } from '../vite-plugin-utils/index.js';
|
||||||
import { warn } from '../core/logger/core.js';
|
|
||||||
|
|
||||||
interface AstroPluginOptions {
|
interface AstroPluginOptions {
|
||||||
config: AstroConfig;
|
config: AstroConfig;
|
||||||
|
@ -176,7 +176,11 @@ export default function markdown({ config, logging }: AstroPluginOptions): Plugi
|
||||||
|
|
||||||
// Warn when attempting to use setup without the legacy flag
|
// Warn when attempting to use setup without the legacy flag
|
||||||
if (setup && !isAstroFlavoredMd) {
|
if (setup && !isAstroFlavoredMd) {
|
||||||
warn(logging, 'markdown', `The setup: property in frontmatter only works with the legacy.astroFlavoredMarkdown flag enabled.`);
|
warn(
|
||||||
|
logging,
|
||||||
|
'markdown',
|
||||||
|
`The setup: property in frontmatter only works with the legacy.astroFlavoredMarkdown flag enabled.`
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const prelude = `---
|
const prelude = `---
|
||||||
|
|
Loading…
Reference in a new issue