Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/tasty-waves-film.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/mdx': patch
---

Fixes an incompatibility where `@astrojs/mdx` v8 could be installed with `astro` versions that bundle an older `@astrojs/markdown-satteri` lacking MDX support. Also improves the error message when the processor is too old to suggest updating `astro` itself.
2 changes: 1 addition & 1 deletion packages/integrations/mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"peerDependencies": {
"@astrojs/markdown-remark": "^7.3.0",
"@astrojs/markdown-satteri": "^0.4.0",
"astro": "^7.2.6"
"astro": "^7.2.10"
},
"peerDependenciesMeta": {
"@astrojs/markdown-remark": {
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/mdx/src/vite-plugin-mdx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const BUILT_IN_PROCESSOR_PACKAGES: Record<string, string> = {
function mdxUnsupportedMessage(name: string): string {
const pkg = BUILT_IN_PROCESSOR_PACKAGES[name];
if (pkg) {
return `\`${pkg}\` is too old to render \`.mdx\` files. Update it to the latest version — a \`^\` range on an older version will not pick it up:\n npm install ${pkg}@latest`;
return `\`${pkg}\` is too old to render \`.mdx\` files. Update it to the latest version:\n npm install ${pkg}@latest`;
}
return `The markdown processor "${name}" does not provide MDX support. Implement \`createMdxRenderer\` on the processor to enable MDX rendering.`;
}
Expand Down
Loading