Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 543 Bytes

11563.md

File metadata and controls

17 lines (12 loc) · 543 Bytes

[HIGHLIGHT]Add support for MDX v2 comment syntax (#11563 by @wooorm)

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*/}