Skip to content

Commit

Permalink
fix(mdx-loader): use React.Fragment as fragment factory
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed May 11, 2022
1 parent 60960b4 commit befa03c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docusaurus-mdx-loader/src/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const {
const pragma = `
/* @jsxRuntime classic */
/* @jsx mdx */
/* @jsxFrag mdx.Fragment */
/* @jsxFrag React.Fragment */
`;

const DEFAULT_OPTIONS: MDXOptions = {
Expand Down
6 changes: 6 additions & 0 deletions website/_dogfooding/_pages tests/markdownPageTests.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,9 @@ Code tag + double pipe: <code>||</code>
Details without a summary

</details>

This is a fragment:

<>Hello</>

It should work :)

0 comments on commit befa03c

Please sign in to comment.