File tree 1 file changed +3
-7
lines changed
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -125,9 +125,7 @@ your JSX runtime.
125
125
install and configure [ ` @mdx-js/react ` ] [ mdx-react ] .
126
126
Then wrap your MDX content in a ` <ThemeProvider /> `
127
127
* If you’re using ** Solid** ,
128
- install [ ` solid-jsx ` ] [ solid-jsx ] .
129
- Set [ ` options.jsxImportSource ` ] [ options-jsximportsource ] to
130
- ` 'solid-jsx' ` .
128
+ set [ ` options.jsxImportSource ` ] [ options-jsximportsource ] to ` 'solid-js' `
131
129
132
130
Other JSX runtimes are supported by setting
133
131
[ ` options.jsxImportSource ` ] [ options-jsximportsource ] .
@@ -898,12 +896,12 @@ for more info.
898
896
``` js path="example.js"
899
897
import {compile } from ' @mdx-js/mdx'
900
898
901
- const js = String (await compile (' # hi' , {jsxImportSource: ' solid-jsx ' , /* otherOptions… */ }))
899
+ const js = String (await compile (' # hi' , {jsxImportSource: ' solid-js ' , /* otherOptions… */ }))
902
900
```
903
901
</details >
904
902
905
903
Solid is supported when [ ` options.jsxImportSource ` ] [ options-jsximportsource ] is
906
- set to ` 'solid-jsx ' ` .
904
+ set to ` 'solid-js ' ` .
907
905
908
906
See also [ ¶ Vite] [ vite ] and [ ¶ Rollup] [ rollup ] which you might be using, for
909
907
more info.
@@ -926,8 +924,6 @@ See their readmes on how to configure them.
926
924
927
925
[ @next/mdx ] : https://github.com/vercel/next.js/tree/canary/packages/next-mdx
928
926
929
- [ solid-jsx ] : https://github.com/high1/solid-jsx
930
-
931
927
[ svelte-jsx ] : https://github.com/kenoxa/svelte-jsx
932
928
933
929
[ jsx ] : #jsx
You can’t perform that action at this time.
1 commit comments
vercel[bot] commentedon Dec 14, 2022
Successfully deployed to the following URLs:
mdx – ./
v2.mdxjs.com
mdxjs.com
mdx-mdx.vercel.app
mdx-git-main-mdx.vercel.app