This adds basic support for MDX v2 comment syntax (JavaScript-style comments) in addition to the existing support MDX v1 comment syntax (HTML-style comments).
Note: Prettier currently only supports the new comment syntax for single-line comments (so that {/* prettier-ignore */}
can be used), and doesn’t support the rest of MDX v2.
Input:
{/*A comment*/}
Prettier stable:
{/_A comment_/}
Prettier main:
{/*A comment*/}