This repository shows how parsing MDX files can cause quite many exceptions due to premature parsing attempts whenever a } character is hit.
npm i
npm run test
This repository uses patch-package to inject some logs to the micromark package where the exceptions are eventually caught.