-
Notifications
You must be signed in to change notification settings - Fork 8
MDX support #112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@Madoshakalaka Thank you for the suggestion. MDX support is in our to-do list and will be implemented in the future. |
@Madoshakalaka We've discussed this internally and we'll add mdx support in a way that .mdx files will be parsed by our current markdown parser - this should work in general, and looks like a relatively quick fix in theory. Will keep you posted. |
@Madoshakalaka MDX support have been implemented. Please try it out. |
@Madoshakalaka To add to Sergey's update, any feedback and comments are appreciated. Please also note whether translations are synced back into your project from GitHub once the PR is merged. With the .md->.mdx renaming that was going on in your repo GitLocalize could not correctly pick up the translations. It should be better now, but let us know if some things look odd. |
I'm happy to report that we're seeing MDX files from newly added paths. Unfortunately, there's still some weirdness going on with existing project paths. I don't mind re-creating the project if that's what it takes, but I figured you might want to take a look at this first. |
@siku2 Yes, It would be much better if you could recreate the project, it should help to solve the problems you are facing at the moment. |
@ilyaspiridonov Hope you are well :) we are also looking for a translation for .mdx now. can you share your latest status on this issue? |
@0sophy1 do you already have sample mdx files in your current project, and the main question - are they going to have formulas? ;) |
Summary
.mdx is a superset of .md, markdown empowered with jsx, used by popular ssg framework docusaurus.
Sadly GitLocalize doesn't support it right now.
Repository URL
I am a contributor of Yew, a rising web-frontend framework in Rust. Its website is built with docusaurus, mdx, and GitLocalize, (yew.rs). Currently, we have to change the mdx suffix to md in the project and ask developers to use the ugly hack of overriding markdown file type association in order to stay with GitLocalize.
Possible fixes
Since new formats are constantly emerging, can't GitLocalize fall back to plaintext when it doesn't recognize the file types?
Thanks for your time 🌹
The text was updated successfully, but these errors were encountered: