storybookjs / mdx2-csf

MDX to CSF compiler using MDXv2
MIT License
14 stars 9 forks source link

Cannot get JSX output #36

Open tomcode45678 opened 1 year ago

tomcode45678 commented 1 year ago

Describe the bug I'm running compile(file, { mdxCompileOptions: { jsx: true, format: 'mdx' } }) where file is a string of a mdx file.

The output I'm getting is React without JSX.

_jsx("br", {}), "\n", _jsx("br", {}), "\n", _jsx("img", {
      src: "https://rojcyk.com/imgs/blog/figma-variants-crash-course/2.gif",
      width: "600",
      alt: ""
})

Expected behavior JSX output