FormidableLabs / FormidableLabs/spectacle

How to swap out mdx-js for MDX-bundler?

Open
#1,052 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
10.2k
Forks
700
PR merge metrics
No merged PRs in 30d

Description

### Question

I would like to swap out `mdx-js` for a [`MDX-bundler`](https://github.com/kentcdodds/mdx-bundler) / `xdm` mdx parser. This change would make possible easy usage of Unified (remark/rehype) markdown plugins, as well as updates the MDX syntax to 2.0 (most noticeably removing the requirement of leaving an empty line between and content.)

Is this possible?

### Background Info/Attempts

I have looked at the docs / examples of [spectacle-mdx-loader](https://github.com/FormidableLabs/spectacle-mdx-loader/tree/main/examples/mdx) and feel that this may be possible, but I haven't understood how Spectacle-Webpack interacts. Perhaps pointers there would be sufficient to get me moving along.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.