mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
update md deprecation messages
This commit is contained in:
parent
9ab66c4ba9
commit
f64aa1475b
1 changed files with 3 additions and 3 deletions
|
@ -179,7 +179,7 @@ export default function markdown({ config, logging }: AstroPluginOptions): Plugi
|
|||
warn(
|
||||
logging,
|
||||
'markdown',
|
||||
`The setup: property in frontmatter only works with the legacy.astroFlavoredMarkdown flag enabled.`
|
||||
`[${id}] Astro now supports MDX! Support for components in ".md" files using the "setup" frontmatter is no longer enabled by default. Migrate this file to MDX or add the "legacy.astroFlavoredMarkdown" config flag to re-enable support.`
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -205,8 +205,8 @@ const $$content = ${JSON.stringify(
|
|||
|
||||
Object.defineProperty($$content.astro, 'headers', {
|
||||
get() {
|
||||
console.warn('content.astro.headers has been removed and replaced with content.astro.headings.');
|
||||
return undefined;
|
||||
console.warn('[${JSON.stringify(id)}] content.astro.headers is now content.astro.headings.');
|
||||
return this.headings;
|
||||
}
|
||||
});
|
||||
---`;
|
||||
|
|
Loading…
Reference in a new issue