-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
MDX parser cannot parse HTML and React components in table cells #5702
Copy link
Copy link
Closed
Labels
lang:mdxIssues affecting the MDX extension to Markdown (not general Markdown issues)Issues affecting the MDX extension to Markdown (not general Markdown issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!Issues with an accompanying pull request. These issues will probably be fixed soon!
Milestone
Metadata
Metadata
Assignees
Labels
lang:mdxIssues affecting the MDX extension to Markdown (not general Markdown issues)Issues affecting the MDX extension to Markdown (not general Markdown issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!Issues with an accompanying pull request. These issues will probably be fixed soon!
Prettier 1.15.3
Playground link
Input:
Output:
SyntaxError: Unexpected token (1:9) > 1 | <strong> | ^Expected behavior:
MDX tables should be able to contain HTML or React components in the table cells.
If you remove the HTML or React component from the cell, it will parse correctly.
HTML in table cells does seem to work with the
markdownparser, so it seems to be anmdxparser issue.