-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
MDX with "html" tag in JSX fails #6943
Copy link
Copy link
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.
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.
Prettier 1.19.1
Playground link
Input:
Output:
Expected behavior:
In prettier 1.18.2 this worked fine, but now it seems that the div tag is parsed as html (judging from the stack trace) and fails. The example above also renders correctly in the MDX playground at https://mdxjs.com/playground. Result JSX is: