#MDX Provider not working

1 messages · Page 1 of 1 (latest)

lilac tiger
#

I tried to use mdx as route, and I have a layout component for my mdx routes which use MDXProvider to customlize MDX. But it did not work on client side, see pic two you can see I provide a h1 component, but the MDXContent did not render it. And in pic one, you can see it worked, this is the server side output without hydration. Please help to make it work.

lilac tiger
#

Note actually the server side result is also not correct, it looked different from client render because of ths css reset.

#

I looked into the output code, the MDXContent component only care about props.components. So there is no way to use MDXProvider?