You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 3, 2019. It is now read-only.
Describe the bug
JSX Components will only render when on their own line. If placed in the middle of, say, a paragraph of markdown text, they either break the page build or are rendered as literal text.
I wasn't sure if this was a limitation in mdx itself so I asked this question, and they confirmed that this should work with version 1 of mdx.
## My mdx file
The JSX here <span style={{ backgroundColor: "red" }}>breaks the build</span>. Ouch.
<span style={{ backgroundColor: "red" }}>But on a seperate line it's ok</span>
mdx version 1 should support both spans...
gatsby-mdx only supports the second one.
The text was updated successfully, but these errors were encountered:
Oops! I just realized that the gatsby-starter-mdx-basic that I cloned a while back just updated to use v1 of mdx. I didn't realize I was using the older one. Sorry!
Describe the bug
JSX Components will only render when on their own line. If placed in the middle of, say, a paragraph of markdown text, they either break the page build or are rendered as literal text.
I wasn't sure if this was a limitation in mdx itself so I asked this question, and they confirmed that this should work with version 1 of mdx.
See my snippet from the question here and this snippet below provided by the mdx people. Neither of these work for me with
gatsby-mdx
.With
gatsby-mdx
:The text was updated successfully, but these errors were encountered: