Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @mdx-js/mdx with all npm packages installed. Try it out:

var mdx = require("@mdx-js/mdx")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@mdx-js/mdx v1.0.10

Parse MDX and transpile to JSX


Build Status lerna Join the community on Spectrum

MDX implementation using remark.



npm i -S @mdx-js/mdx


const mdx = require('@mdx-js/mdx')

const result = await mdx(`
# Hello, MDX

I <3 Markdown and JSX



export default ({components, ...props}) => <MDXTag name="wrapper"  components={components}><MDXTag name="h1" components={components}>{`Hello, MDX`}</MDXTag>
<MDXTag name="p" components={components}>{`I <3 Markdown and JSX`}</MDXTag></MDXTag>


See in mdx-js/mdx for ways to get started.

This organisation has a Code of Conduct. By interacting with this repository, organisation, or community you agree to abide by its terms.


MIT © Compositor and ZEIT


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free