-
Notifications
You must be signed in to change notification settings - Fork 63
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
Astro MDX example? #42
Comments
i managed to get it working davidhu2000/davidhu2000.github.io#52 there are some issues with it
|
Can confirm that it doesn't work with .mdx files. Not sure if it's just Astro though. |
It works with MDX in Next.js. In the tests, it takes a hAST from the remark parser, then that hAST can be converted into HTML after this plugin has done its work: Is there anything special Astro does with MDX files and Rehype plugins that causes it not to work? |
Seems to be working fine in StackBlitz |
What's not working is the line highlight. I forked the StackBlitz and tweak it to my use case, and surprisingly it works just fine. After investigating more, I found that the problem is with the version of @astrojs/mdx. I updated it to version 0.11.4 in this fork StackBlitz and it's no longer working. As you can see, the first line of the code in the mdx version doesn't get the |
Tried it on my project. And yes, the problem is with Astro's mdx integration. Downgrading the version fixed the problem. Thanks |
If you try increasing each version from my StackBlitz, which is the one that stops working? It might be a good idea to file an issue on the Astro repo, or, if there's a workaround we can do for the implementation, that's also possible |
v0.10.0 is when it starts breaking. Change log |
Found this: withastro/astro#4447 |
Hello 😇, this issue has been resolved in |
Great news. I'll close this then. |
Any working example with Astro MDX?
The text was updated successfully, but these errors were encountered: