Skip to content

problem with integrating an MDX editor with preview #382

Answered by fuma-nama
AaronClaes asked this question in Q&A
Discussion options

You must be logged in to vote

To use Fumadocs MDX for this, you can’t access the raw content. The design of Fumadocs is indeed capable to handle custom content sources, but Fumadocs MDX doesn’t provide the raw content of files in consideration of memory usage. We do this because MDX files must be compiled statically to be optimised by Next.js and able to use Webpack loaders to load images. The presence of raw content isn’t necessary. Hence, the page doesn’t provide its raw content to support custom MDX compilers in server components.

I wonder what do you mean by create an export, if you want to render the markdown to a react component, libraries like next-mdx-remote could do it for you. The only problem left would be …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AaronClaes
Comment options

Answer selected by AaronClaes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants