Closed ferdinandant closed 3 years ago
whoops, sorry the error log made it clear: Closing this now :bow:
note: to create a comment in MDX, use
{/* text */}
if anyone stumbles with prettier keeps formatting your code, try {/** **/}
\
(but it won't work for prettier-ignore since it will add a new newline):
Subject of the issue
I updated my blog to use
@mdx-js/loader v2.0.0-next.9
, and it suddenly unable to parse HTML comments. (I used comments to put<!-- prettier-ignore -->
)Removing all
<!-- -->
in the file will fix the issue.Your environment
@mdx-js/loader@2.0.0-next.9
,next@11.1.2
,react@17.0.2
,react-dom@17.0.2
Steps to reproduce
You can recreate the error in mdx-js playground: https://mdxjs.com/playground/
Expected behaviour
Parsing should succeed
Actual behaviour
Throws syntax error