Skip to content

Upgrade to mdx 2.x #230

@joepio

Description

@joepio

First off: thanks for maintaining this repo, it's awesome.

Version 2.0 of mdx has just been released has a pre-release, and has a couple of benefits:

  • Improved syntax makes it easier to use markdown in JSX
  • JavaScript expressions turn {2 * Math.PI} into 6.283185307179586
  • New esbuild, Rollup, and Node.js integrations
  • Any JSX runtime: React, Preact, Vue, Emotion, you name it, they’re all supported
  • Improved AST exposes more info in greater detail
  • Compiles at least 25% faster
  • Generated code runs twice as fast (100% faster)
  • Bundle size of @mdx-js/mdx is more than three times as small (250% smaller)

Here's the migration guide.

Are there plans for next-mdx-remote to upgrade to this new version?

Edit: just noticed there's already a PR, nice! Might be good to keep this issue open as a reference, or maybe just close it. #211

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions