-
Suppose the content of mdx is: The result displayed by the browser is: Or a demo card like this: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Are you looking for a playground for JSX codeblocks? If you are looking for the source of the playground on the site, it isn't a plugin, but it's available at https://github.com/mdx-js/mdx/blob/main/docs/_component/editor.client.js If you are looking for a more full featured documentation solution, there are several mdx based ones: |
Beta Was this translation helpful? Give feedback.
-
A new thread, but responding to #1902 (reply in thread). The biggest problem with your approach: JSX is not MDX. If you want JSX, don’t use MDX. If you want MDX, don’t use Further problems with your code: |
Beta Was this translation helpful? Give feedback.
A new thread, but responding to #1902 (reply in thread).
The biggest problem with your approach: JSX is not MDX. If you want JSX, don’t use MDX. If you want MDX, don’t use
```jsx
. Use Babel or so when you want to evaluate JS(X).Further problems with your code: