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

Multi-line comments in MDX are malformed #15163

Open
MadLittleMods opened this issue Jul 27, 2023 · 1 comment
Open

Multi-line comments in MDX are malformed #15163

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

Comments

@MadLittleMods
Copy link

MadLittleMods commented Jul 27, 2023

Prettier 3.0.0
Playground link

--parser mdx
--trailing-comma es5

Input: (whatever indentation or variation)

# Hello, World!
  
{/* This is a
  * multi-line comment
  */}

Output:

# Hello, World!

{/\* This is a

- multi-line comment
  \*/}

Expected behavior:

# Hello, World!
  
{/* This is a
  * multi-line comment
  */}

Using {/* prettier-ignore */} has no effect and it still tries to format the comment.


Related to:

@kachkaev kachkaev added the lang:mdx Issues affecting the MDX extension to Markdown (not general Markdown issues) label Jul 28, 2023
@kachkaev
Copy link
Member

Likely part of #12209

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