storybookjs / mdx2-csf

MDX to CSF compiler using MDXv2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot get JSX output

tomcode45678 opened this issue · comments

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