Render user content mdx #1325
Answered
by
fuma-nama
EnhancedJax
asked this question in
Q&A
-
Hi! I plan to implement a feature to render user mdx for my site dynamically, ideally with how fumadocs already renders my static mdx. I understand this sits outside of the functionality of fumadocs, but any guidance on how this can be done, or any pre-existing apis from fumadocs that can be used, would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Answered by
fuma-nama
Jan 27, 2025
Replies: 1 comment 3 replies
-
I think you will be interested on https://fumadocs.vercel.app/docs/headless/custom-source |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hmm you mean the content is from client side? Not sure about your use case, I would recommend the RSC approach if possible (e.g. fetch content from database and render on server-side). If you want to use it on client, consider React Markdown or other stuffs in the Remark ecosystem. And use Code Block (Dynamic) for syntax highlighting, which can lazy load languages