Note: This plugin is based on the official parcel-plugin-mdx and modified to also export the Table of Contents. If you don't need a Table of Contents, you are better off using the official parcel-plugin-mdx.
npm i -D parcel-plugin-mdx-with-toc
Or with Yarn:
yarn add -D parcel-plugin-mdx-with-toc
// index.jsimport MDXContent Toc from './content.mdx';...;