←back to thread

193 points yaoke259 | 3 comments | | HN request time: 0.656s | source
1. etler ◴[] No.45029342[source]
I've been working on a similar project using MDX as the parser to enable runtime static JSX tags in markdown: https://www.timetler.com/2025/08/19/unlocking-rich-ui-compon...

I'm curious why you decided to go with a DSL instead of embedding an established language?

replies(1): >>45034301 #
2. yaoke259 ◴[] No.45034301[source]
MDX is not secure by default, you'd be executing arbitrary JS code potentially sent by untrustworthy sources, which is advised against in the MDX website.
replies(1): >>45038607 #
3. Terretta ◴[] No.45038607[source]
> you'd be executing arbitrary JS code potentially sent by untrustworthy sources

On the other hand, this is true of every web site using a JS-world framework, and worse, even static sites if they use JS ad scripts.