mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-02 03:37:48 +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 = `
|
||||
/* @jsxRuntime classic */
|
||||
/* @jsx mdx */
|
||||
/* @jsxFrag mdx.Fragment */
|
||||
/* @jsxFrag React.Fragment */
|
||||
`;
|
||||
|
||||
const DEFAULT_OPTIONS: MDXOptions = {
|
||||
|
|
|
@ -183,3 +183,9 @@ Code tag + double pipe: <code>||</code>
|
|||
Details without a summary
|
||||
|
||||
</details>
|
||||
|
||||
This is a fragment:
|
||||
|
||||
<>Hello</>
|
||||
|
||||
It should work :)
|
||||
|
|
Loading…
Add table
Reference in a new issue