Closed vrabe closed 2 years ago
Hi, thanks for the issue!
I see that your issue is about a specific experiment/flag we currently have. We collect any feedback (bug reports, feature requests, questions, etc.) inside a respective discussion in the Umbrella Discussions category.
Please direct your feedback here: https://github.com/gatsbyjs/gatsby/discussions/25068
Thanks!
@vrabe hey, I met the same issue with you, how did you resolve it?
@shirly-chen-awx Gatsby doesn't want to support it. You can check this doc.
Please note: The enableCustomId option is not compatible with gatsby-plugin-mdx as the syntax is invalid in MDX v2. You should use rehype-slug-custom-id instead.
To anyone who's stuck, remark-custom-heading-id
works with MDX v2. (I tried the suggested rehype-slug-custom-id but it didn't work.)
I had the same error message. Turned out to be a syntax error in MDX file, which I guess caused gatsby to pass it to either the JSX or JS compiler (acorn).
Not a valid mdx syntax? Hmm, let's swallow any errors, try another a parser for another programming language and show errors from that...
.
Preliminary Checks
Description
I tried to test #33116 bug with MDX v2 version of gatsby-plugin-mdx. But I encountered errors when I was starting develop server.
Reproduction Link
https://github.com/vrabe/gatsby-mdx-autoheader-bug
Steps to Reproduce
gatsby develop
Expected Result
No error.
Actual Result
Environment
Config Flags
No response