Skip to content

Markdown inside JSX elements #2282

Answered by wooorm
tumidi asked this question in Q&A
Mar 30, 2023 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

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 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!

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@tumidi
Comment options

Comment options

You must be logged in to vote
1 reply
@tumidi
Comment options

Answer selected by tumidi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants