Skip to content

Commit 259a539

Browse files
authored
Remove legacy.astroFlavoredMarkdown (#5771)
* Remove legacy.astroFlavoredMarkdown * update vue mdx test * Add a changeset
1 parent 9ef0c50 commit 259a539

File tree

109 files changed

+15
-1870
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+15
-1870
lines changed

.changeset/grumpy-days-yell.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'astro': major
3+
---
4+
5+
Removes support for astroFlavoredMarkdown
6+
7+
In 1.0 Astro moved the old Astro Flavored Markdown (also sometimes called Components in Markdown) to a legacy feature. This change removes the `legacy.astroFlavoredMarkdown` option completely.
8+
9+
In 2.0 this feature will not be available in Astro at all. We recommend migration to MDX for those were still using this feature in 1.x.

packages/astro/e2e/fixtures/preact-compat-component/astro.config.mjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,5 @@ import preact from '@astrojs/preact';
33

44
// https://astro.build/config
55
export default defineConfig({
6-
legacy: {
7-
astroFlavoredMarkdown: true,
8-
},
96
integrations: [preact({ compat: true })],
107
});

packages/astro/e2e/fixtures/preact-compat-component/src/pages/markdown.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

packages/astro/e2e/fixtures/preact-component/astro.config.mjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@ import mdx from '@astrojs/mdx';
44

55
// https://astro.build/config
66
export default defineConfig({
7-
legacy: {
8-
astroFlavoredMarkdown: true,
9-
},
107
integrations: [preact(), mdx()],
118
});

packages/astro/e2e/fixtures/preact-component/src/pages/markdown.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

packages/astro/e2e/fixtures/react-component/astro.config.mjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@ import mdx from '@astrojs/mdx';
44

55
// https://astro.build/config
66
export default defineConfig({
7-
legacy: {
8-
astroFlavoredMarkdown: true,
9-
},
107
integrations: [react(), mdx()],
118
});

packages/astro/e2e/fixtures/react-component/src/pages/markdown.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

packages/astro/e2e/fixtures/solid-component/astro.config.mjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@ import solid from '@astrojs/solid-js';
44

55
// https://astro.build/config
66
export default defineConfig({
7-
legacy: {
8-
astroFlavoredMarkdown: true,
9-
},
107
integrations: [solid(), mdx()],
118
});

packages/astro/e2e/fixtures/solid-component/src/pages/markdown.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

packages/astro/e2e/fixtures/svelte-component/astro.config.mjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@ import mdx from '@astrojs/mdx';
44

55
// https://astro.build/config
66
export default defineConfig({
7-
legacy: {
8-
astroFlavoredMarkdown: true,
9-
},
107
integrations: [svelte(), mdx()],
118
});

0 commit comments

Comments
 (0)