We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
img
1 parent 5444afe commit 2f5d954Copy full SHA for 2f5d954
.changeset/real-fishes-double.md
@@ -0,0 +1,5 @@
1
+---
2
+'nextra': patch
3
4
+
5
+fix unable override injected `img` component
packages/nextra/src/client/mdx.ts
@@ -13,10 +13,10 @@ const DEFAULT_COMPONENTS = {
13
} satisfies MDXComponents
14
15
export const useMDXComponents: typeof originalUseMDXComponents = components => {
16
- return originalUseMDXComponents({
+ return {
17
...DEFAULT_COMPONENTS,
18
- ...components
19
- })
+ ...originalUseMDXComponents(components)
+ }
20
}
21
22
export { MDXProvider } from '@mdx-js/react'
0 commit comments