Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
↪️ Pull Request
Other variant for #7922 to solve #7934.
The main differences are:
@parcel/transformer-mdx-2
instead of modifying the existing.For the MDX config, you can add a
.mdxrc.js
or.mdxrc.cjs
file at the root of your repo to be able to customise MDX's behavior (see https://mdxjs.com/packages/mdx/#optionsremarkplugins).Note: I tried to build parcel locally but
yarn build-native
gets stuck. So i couldn't test this PR locallyNote 2: to make it work, we also need
@parcel/transformer-js
as MDX v2 generates ESM code:💻 Examples
Previous MDX examples should still be applicable.
I also added a example here with some MDX config too: https://github.com/Ayc0/test-parcel/blob/7d05ca9/src/hello.mdx
🚨 Test instructions
Previous MDX tests should still be applicable.
But I also added a new one (not really sure if this is used).
I also created a repo here: https://github.com/Ayc0/test-parcel/blob/7d05ca9/src/hello.mdx
Notice the MDX 2 specific syntaxes like
{a}
or the MD in HTML, and that the strikethrough and the table work (provided by GFM):✔️ PR Todo