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

Commenting causes incorrect escape character? #415

Closed
4 tasks done
erikschul opened this issue Mar 6, 2024 · 3 comments
Closed
4 tasks done

Commenting causes incorrect escape character? #415

erikschul opened this issue Mar 6, 2024 · 3 comments
Labels
🙋 no/question This does not need any changes 👎 phase/no Post cannot or will not be acted on

Comments

@erikschul
Copy link

Initial checklist

Affected packages and versions

v1.8.1

Link to runnable example

No response

Steps to reproduce

For an .mdx file, when saving this content

{/* Lorem ipsum

## Dolor salet

*/}

it is saved as

{/\* Lorem ipsum

## Dolor salet

\*/}

Expected behavior

The \ should not be inserted?

Actual behavior

.

Runtime

No response

Package manager

No response

OS

No response

Build and bundle tools

No response

@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Mar 6, 2024
@remcohaszing
Copy link
Member

The issue title does not match up with the description. Commenting does not cause this issue. Formatting doesn’t either.

You are probably formatting the code with Prettier. Prettier does have this issue. See this playground.

@remcohaszing remcohaszing closed this as not planned Won't fix, can't repro, duplicate, stale Mar 7, 2024

This comment has been minimized.

@remcohaszing remcohaszing added the 🙋 no/question This does not need any changes label Mar 7, 2024
@github-actions github-actions bot added 👎 phase/no Post cannot or will not be acted on and removed 🤞 phase/open Post is being triaged manually labels Mar 7, 2024
@erikschul
Copy link
Author

Thanks!

prettier/prettier#15163

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙋 no/question This does not need any changes 👎 phase/no Post cannot or will not be acted on
Development

No branches or pull requests

2 participants