Skip to content

Render user content mdx #1325

Answered by fuma-nama
EnhancedJax asked this question in Q&A
Jan 27, 2025 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

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

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@EnhancedJax
Comment options

@fuma-nama
Comment options

Answer selected by EnhancedJax
@EnhancedJax
Comment options

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