@@ -108,28 +108,31 @@ your JSX runtime.
108
108
you don’t need to do anything.
109
109
Optionally install and configure [ ` @mdx-js/react ` ] [ mdx-react ]
110
110
* If you’re using ** Preact** ,
111
- set [ ` options.jsxImportSource ` ] [ options-jsximportsource ] to ` 'preact' ` .
111
+ set [ ` jsxImportSource ` in ` ProcessorOptions ` ] [ processor-options ] to
112
+ ` 'preact' ` .
112
113
Optionally install and configure [ ` @mdx-js/preact ` ] [ mdx-preact ]
113
114
* If you’re using ** Svelte** ,
114
115
install [ ` svelte-jsx ` ] [ svelte-jsx ] .
115
- Set [ ` options.jsxImportSource ` ] [ options-jsximportsource ] to ` 'svelte-jsx' ` .
116
+ Set [ ` jsxImportSource ` in ` ProcessorOptions ` ] [ processor-options ] to
117
+ ` 'svelte-jsx' ` .
116
118
* If you’re using ** Vue 3** ,
117
- set [ ` options. jsx` ] [ options-jsx ] to ` true ` .
119
+ set [ ` jsx ` in ` ProcessorOptions ` ] [ processor-options ] to ` true ` .
118
120
Then use Babel alongside your MDX integration (which is possible with
119
121
webpack and Rollup but not esbuild) and configure it to use
120
122
[ ` @vue/babel-plugin-jsx ` ] ( https://github.com/vuejs/jsx-next/tree/dev/packages/babel-plugin-jsx ) .
121
123
Optionally install and configure [ ` @mdx-js/vue ` ] [ mdx-vue ]
122
124
* If you’re using ** Emotion** ,
123
- set [ ` options. jsxImportSource` ] [ options-jsximportsource ] to
125
+ set [ ` jsxImportSource ` in ` ProcessorOptions ` ] [ processor-options ] to
124
126
` '@emotion/react' `
125
127
* If you’re using ** Theme UI** ,
126
128
install and configure [ ` @mdx-js/react ` ] [ mdx-react ] .
127
129
Then wrap your MDX content in a ` <ThemeProvider /> `
128
130
* If you’re using ** Solid** ,
129
- set [ ` options.jsxImportSource ` ] [ options-jsximportsource ] to ` 'solid-js/h' `
131
+ set [ ` jsxImportSource ` in ` ProcessorOptions ` ] [ processor-options ] to
132
+ ` 'solid-js/h' `
130
133
131
134
Other JSX runtimes are supported by setting
132
- [ ` options. jsxImportSource` ] [ options-jsximportsource ] .
135
+ [ ` jsxImportSource ` in ` ProcessorOptions ` ] [ processor-options ] .
133
136
See also the different options there on how to use the classic JSX runtime
134
137
and how to define a ` pragma ` and ` pragmaFrag ` for it.
135
138
@@ -719,7 +722,7 @@ on how to use MDX with React Static.
719
722
</details >
720
723
721
724
[ Emotion] ( https://emotion.sh/docs/introduction ) is supported when
722
- [ ` options. jsxImportSource` ] [ options-jsximportsource ] is set to
725
+ [ ` jsxImportSource ` in ` ProcessorOptions ` ] [ processor-options ] is set to
723
726
` '@emotion/react' ` .
724
727
You can optionally install and configure [ ` @mdx-js/react ` ] [ mdx-react ] , which
725
728
allows for context based component passing.
@@ -780,8 +783,8 @@ more info.
780
783
```
781
784
</details >
782
785
783
- Preact is supported when [ ` options. jsxImportSource` ] [ options-jsximportsource ] is
784
- set to ` 'preact' ` .
786
+ Preact is supported when [ ` jsxImportSource ` in ` ProcessorOptions ` ] [ processor-options ]
787
+ is set to ` 'preact' ` .
785
788
You can optionally install and configure [ ` @mdx-js/preact ` ] [ mdx-preact ] , which
786
789
allows for context based component passing.
787
790
@@ -856,8 +859,8 @@ info.
856
859
```
857
860
</details >
858
861
859
- Svelte is supported when [ ` options. jsxImportSource` ] [ options-jsximportsource ] is
860
- set to ` 'svelte-jsx' ` , which is a [ small package] [ svelte-jsx ] that adds support
862
+ Svelte is supported when [ ` jsxImportSource ` in ` ProcessorOptions ` ] [ processor-options ]
863
+ is set to ` 'svelte-jsx' ` , which is a [ small package] [ svelte-jsx ] that adds support
861
864
for the JSX automatic runtime to Svelte.
862
865
863
866
See also [ ¶ esbuild] [ esbuild ] , [ ¶ Rollup] [ rollup ] , and [ ¶ webpack] [ webpack ] ,
@@ -899,8 +902,8 @@ for more info.
899
902
```
900
903
</details >
901
904
902
- Solid is supported when [ ` options. jsxImportSource` ] [ options-jsximportsource ] is
903
- set to ` 'solid-js/h' ` .
905
+ Solid is supported when [ ` jsxImportSource ` in ` ProcessorOptions ` ] [ processor-options ]
906
+ is set to ` 'solid-js/h' ` .
904
907
905
908
See also [ ¶ Vite] [ vite ] and [ ¶ Rollup] [ rollup ] which you might be using, for
906
909
more info.
@@ -961,9 +964,7 @@ See their readmes on how to configure them.
961
964
962
965
[ evaluate ] : /packages/mdx/#evaluatefile-options
963
966
964
- [ options-jsximportsource ] : /packages/mdx/#optionsjsximportsource
965
-
966
- [ options-jsx ] : /packages/mdx/#optionsjsx
967
+ [ processor-options ] : /packages/mdx/#processoroptions
967
968
968
969
[ cra ] : #create-react-app-cra
969
970
0 commit comments