Skip to content

Commit 52b2869

Browse files
authored
Pass components directly to compiled MDX function (#330)
1 parent 9daf206 commit 52b2869

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ export function MDXRemote({
101101
// wrapping the content with MDXProvider will allow us to customize the standard
102102
// markdown components (such as "h1" or "a") with the "components" object
103103
const content = (
104-
<mdx.MDXProvider components={components}>
105-
<Content />
106-
</mdx.MDXProvider>
104+
<Content components={components} />
107105
)
108106

109107
// If lazy = true, we need to render a wrapping div to preserve the same markup structure that was SSR'd

0 commit comments

Comments
 (0)