Skip to content

Letting users write in MDX? (Would it be practical and safe?) #1371

Answered by wooorm
bakerfugu asked this question in Q&A
Discussion options

You must be logged in to vote

Reframing the question: “Letting users write in JavaScript?” might help you figure it out.

In short: no, it’s not safe, it’s dangerous.

There are of course places online where you can write code, e.g., runkit, codesandbox, which is evaluated in a sandbox. You could do something like that.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by ChristianMurphy
Comment options

You must be logged in to vote
1 reply
@ChristianMurphy
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
4 participants