Code component supports prism highlighting and react-live arbitrary
code execution
Hey! cool starter. I thought it'd be sweet to show off some of the MDX capabilities by replacing the prism remark plugin with a React component that swaps between Prism highlighting and React Live playgrounds.
This PR also uses a new package mdx-utils that I published today to make replacing the pre component easier.
Hey thanks for the PR! I was planning on adding more to show off the capabilities of MDX and this is a great start. Thanks for the awesome plugin to get MDX working in Gatsby 😄
Hey! cool starter. I thought it'd be sweet to show off some of the MDX capabilities by replacing the prism remark plugin with a React component that swaps between Prism highlighting and React Live playgrounds.
This PR also uses a new package
mdx-utils
that I published today to make replacing thepre
component easier.Here's a gif of both in action: