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

Code block wrong formatting in mdx file when immediately preceded by a component #15740

Closed
tonai opened this issue Dec 1, 2023 · 1 comment
Closed
Labels
locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. type:duplicate Issues that are a duplicate of a previous issue

Comments

@tonai
Copy link

tonai commented Dec 1, 2023

Prettier 3.1.0
Playground link

--parser mdx

Input:

<SomeComponent/>
```tsx
import React from 'react';

// write some code
```

Output:

<SomeComponent />
```tsx import React from 'react';

// write some code

```

```

Expected behavior:

<SomeComponent/>
```tsx
import React from 'react';

// write some code
```
@kachkaev
Copy link
Member

kachkaev commented Dec 1, 2023

Seems to be an issue with MDX 3 support. Let’s track it in #12209 with other similar cases.

@kachkaev kachkaev closed this as not planned Won't fix, can't repro, duplicate, stale Dec 1, 2023
@kachkaev kachkaev added the type:duplicate Issues that are a duplicate of a previous issue label Dec 1, 2023
@github-actions github-actions bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Mar 1, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. type:duplicate Issues that are a duplicate of a previous issue
Projects
None yet
Development

No branches or pull requests

2 participants