Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MDX wrap text in JSX incorrectly #13082

Open
gutenye opened this issue Jul 6, 2022 · 1 comment
Open

MDX wrap text in JSX incorrectly #13082

gutenye opened this issue Jul 6, 2022 · 1 comment
Labels
lang:mdx Issues affecting the MDX extension to Markdown (not general Markdown issues)

Comments

@gutenye
Copy link

gutenye commented Jul 6, 2022

Prettier 2.7.1
Playground link

# Options
--parser mdx

Input:

<div>text longer than 80 characters</div>

Output:

<div>
  text longer than 80 characters
</div>

In MDX 2, this is a paragraph

Expected behavior:

<div>text longer than 80 characters</div>
@kachkaev
Copy link
Member

This issue is a subset of #12209

@kachkaev kachkaev added the lang:mdx Issues affecting the MDX extension to Markdown (not general Markdown issues) label Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang:mdx Issues affecting the MDX extension to Markdown (not general Markdown issues)
Projects
None yet
Development

No branches or pull requests

2 participants