mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-03 12:17:20 +02:00
fix(mdx-loader): use React.Fragment as fragment factory (#7392)
This commit is contained in:
parent
60960b471d
commit
d3788bd126
2 changed files with 7 additions and 1 deletions
|
@ -31,7 +31,7 @@ const {
|
||||||
const pragma = `
|
const pragma = `
|
||||||
/* @jsxRuntime classic */
|
/* @jsxRuntime classic */
|
||||||
/* @jsx mdx */
|
/* @jsx mdx */
|
||||||
/* @jsxFrag mdx.Fragment */
|
/* @jsxFrag React.Fragment */
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const DEFAULT_OPTIONS: MDXOptions = {
|
const DEFAULT_OPTIONS: MDXOptions = {
|
||||||
|
|
|
@ -183,3 +183,9 @@ Code tag + double pipe: <code>||</code>
|
||||||
Details without a summary
|
Details without a summary
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
This is a fragment:
|
||||||
|
|
||||||
|
<>Hello</>
|
||||||
|
|
||||||
|
It should work :)
|
||||||
|
|
Loading…
Add table
Reference in a new issue