You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
domain: dependenciesProposal to upgrade a dependency across major versionsdomain: markdownRelated to Markdown parsing or syntaxproposalThis issue is a proposal, usually non-trivial change
Reacted by Gabriel Csapo, Artem Kovalov, 陈杨文, lideming, Lukas Gentele, Nicola Corti, Erick Zhao, very-doge-wow, Julien Cayzac, Kiai and 39 more
Reacted by Dhi Aurrahman, Erick Zhao, Edoardo, notaphplover, Henry Yu, Yağızhan Burak Yakar, Nwel, Jason Kurian, Mikael Finstad, Will Slattum and 7 more
Reacted by Sshubam Verma, Manuel Meurer, Mayank Raj, TheCatLady and WATAHIKI Yuto
I strongly encourage using xdm, it's a simpler, faster and more stable pipeline, it is always in sync with the remark/rehype ecosystem and its development is moving quickly
Reacted by Sébastien Lorber, Brennan Kinney, Sacha Weatherstone and Matthew Gamble
@birdofpreyru alright, although it seems self-evident for now, because MDX v2 is not officially released. However, the migration to MDX v2 will probably not be that easy, so it makes sense to do it (see #5575).
FYI, earlier in header of MDX website listed its latest version, but currently they have removed that info.
😄 This is the processing layer I'm thinking of: str.replaceAll('<!--', '\\<!--')
I know I'm late to the party, @slorber, but are we worried about code samples here? I could see that replacement potentially breaking an HTML snippet in a code fence.
😄 This is the processing layer I'm thinking of: str.replaceAll('<!--', '\\<!--')
I know I'm late to the party, @slorber, but are we worried about code samples here? I could see that replacement potentially breaking an HTML snippet in a code fence.
The way I see it is that I'll add a few env variables to turn compatibility options on. To make the upgrade simpler you'll be able to turn all the env variables on, and once you have fully migrated to MDX 2 you could remove the env variables.
This is a breaking change, and it is very likely that upgrading to Docusaurus v3 + MDX v2 will require you to edit some docs to fix some little issues due to those changes.
So no it won't be in v2.x
I hope to release the v3 first alphas soon.
In the meantime, you already are able to use the canary releases. Canaries are safe to use in production if you pin the canary version. In the end, the v3 release will just be a future canary release tagged as v3.
domain: dependenciesProposal to upgrade a dependency across major versionsdomain: markdownRelated to Markdown parsing or syntaxproposalThis issue is a proposal, usually non-trivial change
Activity
armano2 commentedon Mar 22, 2021
mdx 2.0 introduced breaking change, comments
<!-- -->are not longer allowed in code, and thus mdxjs can't be used for simple markdown filesslorber commentedon Mar 22, 2021
There are also disagreements in the MDX core contributors:
MDXProvidermdx-js/mdx#1425mdxTypealternative) proposal mdx-js/mdx#1385There's also a "fork" xdm project from Titus himself.
Let's not rush on this migration for now and see how things evolve.
lunelson commentedon May 17, 2021
I strongly encourage using xdm, it's a simpler, faster and more stable pipeline, it is always in sync with the remark/rehype ecosystem and its development is moving quickly
birdofpreyru commentedon Sep 15, 2021
Ok, @lex111, probably then add a warning block to the top of https://docusaurus.io/docs/markdown-features/react page, saying that current Docusaurus uses MDX v1? Cause I believe the current docs do not mention it, and the linked MDX site pages do not make it clear that there are two version with some features not supported in v1.
lex111 commentedon Sep 16, 2021
@birdofpreyru alright, although it seems self-evident for now, because MDX v2 is not officially released. However, the migration to MDX v2 will probably not be that easy, so it makes sense to do it (see #5575).
FYI, earlier in header of MDX website listed its latest version, but currently they have removed that info.
pomber commentedon Oct 13, 2021
MDX v2 release candidate landing soon
slorber commentedon Oct 19, 2021
MDX 2 RC 👍
https://v2.mdxjs.com/blog/v2/
And there's a migration guide: https://v2.mdxjs.com/migrating/v2/
parsnips commentedon Nov 17, 2021
Would really love to get to v2 to have things like: mdx-js/mdx#821
This would be a tremendous help for porting in plain markdown documents that have
<pre />or inline html fragments.22 remaining items
dprothero commentedon Apr 5, 2023
I know I'm late to the party, @slorber, but are we worried about code samples here? I could see that replacement potentially breaking an HTML snippet in a code fence.
Josh-Cena commentedon Apr 5, 2023
@dprothero We're probably not going to do that kind of naïve replacement. It would be contextual, so any code would be skipped.
slorber commentedon Apr 7, 2023
The way I see it is that I'll add a few env variables to turn compatibility options on. To make the upgrade simpler you'll be able to turn all the env variables on, and once you have fully migrated to MDX 2 you could remove the env variables.
Will probably add an option to turn this on: https://github.com/leebyron/remark-comment (or maybe it will simply work if you pass it as a remark plugin, didn't try that yet)
I also think I'll allow you to provide your own preprocessor so that you can handle the most complex cases yourself.
slorber commentedon Apr 21, 2023
Please test it and give me some feedback here! 🙏
chendrix commentedon May 26, 2023
Am I to understand this isn't going to land in any of the
2.xreleases and is being saved for3.0.0?RudraSen2 commentedon May 28, 2023
yes. this is for the 3.0 release
ilg-ul commentedon May 28, 2023
Any tentative release date for it?
RudraSen2 commentedon May 28, 2023
I don't know, You can ask the docusaurus team.
slorber commentedon May 30, 2023
This is a breaking change, and it is very likely that upgrading to Docusaurus v3 + MDX v2 will require you to edit some docs to fix some little issues due to those changes.
So no it won't be in v2.x
I hope to release the v3 first alphas soon.
In the meantime, you already are able to use the canary releases. Canaries are safe to use in production if you pin the canary version. In the end, the v3 release will just be a future canary release tagged as v3.
slorber commentedon Jun 9, 2023
Struggling to upgrade your site to MDX v2?
Here's a discussion to ask for support: #9053