-
Notifications
You must be signed in to change notification settings - Fork 140
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
feat: support MDX v2 #211
feat: support MDX v2 #211
Conversation
src/serialize.ts
Outdated
* webpack overrides require.resolve by default and returns the module ID | ||
* instead of the resolved path | ||
*/ | ||
const esbuildDir = pkgDir.sync(eval('require.resolve')('esbuild')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lurking with zero context here, is there any way to avoid using eval? It’d be awesome to be able to use this library inside edge functions, which don’t support eval.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👋 I'll see what I can do!
Hi! Great to see the progress on MDX2, do you have any plans for when all these changes will be ready? |
Will this also fix that?
|
@artsiompeshko - It's already available if you use the tag @ConsoleTVs - you are welcome to try it out and see, but unless you are directly passing user input into the library, which would be a very terrible idea, you are not affected by this vulnerability regardless |
HTML comments seem to throw: EDIT: Seems like an issue upstream: mdx-js/mdx#1042 <!-- I'm a comment Comment! -->
|
HTML comments are not allowed in mdx v2, you can use jsx comments instead - it shows an example of this in the error message |
@jescalan MDX v2.0.0 has been released stable! 🥳 Looking forward to have |
Haha nice, one hour ago. We'll get to pushing this as soon as we are able. @BRKalow any objections to merge & ship here? |
@jescalan No objections! I'll give this a quick once-over this week and we'll get it merged and released. |
Is there anything missing to this release happen? 🕺 |
Minify is missing, see #211 (comment) |
@SukkaW We explicitly dropped the esbuild minification as it was causing a lot of compatibility issues when deployed to certain platforms. We do want to have some form of minification at some point, but for now we'll ship v4 without it. You can certainly wrap |
I am aware that |
What's the resolution at this point? Are we awaiting the minifying functionality before pushing the merge? |
I was just wrapping up the finishing touches last Friday, will ship this week! |
parseFrontmatter: true
toserialize()
closes #230
closes #164