Skip to content

Commit

Permalink
update md deprecation messages
Browse files Browse the repository at this point in the history
  • Loading branch information
FredKSchott committed Jul 26, 2022
1 parent 9ab66c4 commit f64aa14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/astro/src/vite-plugin-markdown/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`
);
}

Expand All @@ -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;
}
});
---`;
Expand Down

0 comments on commit f64aa14

Please sign in to comment.