-
I'm coming from I thoroughly searched the docs, the issues and the discussions section. It's unclear on how nested JSX elements actually work. Here is a CodePen which I simplified from our project. Markdown parsing fails as soon as I nest two There are some similar issues/discussions on interleaving but according to #628 this should work since v2 of MDX. Am I missing something here? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Heya @tumidi 👋 The source of the difference is the level of indentation changing the interpretation. |
Beta Was this translation helpful? Give feedback.
-
Hi! You are correct that this is a bug. This is a bug in how parsing GFM tables works together with MDX, or, more specifically, how they work when indented code is turned off. Here is a smaller reproduction: <div>
| a |
| - |
| b |
</div>
<div>
| a |
| - |
| b |
</div> Which you can try on https://mdxjs.com/playground/, after you turn The correct place to report this is https://github.com/micromark/micromark-extension-gfm-table. Can you do that? Thanks! |
Beta Was this translation helpful? Give feedback.
Hi!
You are correct that this is a bug. This is a bug in how parsing GFM tables works together with MDX, or, more specifically, how they work when indented code is turned off.
Here is a smaller reproduction:
Which you can try on https://mdxjs.com/playground/, after you turn
remark-gfm
on in the settings there.The correct place to report this is https://github.com/micromark/micromark-extension-gfm-table. Can you do that? Thanks!