$ npm install @mdx-js/mdx
@mdx-js/mdx
MDX implementation using remark.
npm:
npm i -S @mdx-js/mdx
const mdx = require('@mdx-js/mdx')
const result = await mdx(`
# Hello, MDX
I <3 Markdown and JSX
`)
console.log(result)
Yields:
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 the Support and Contributing guidelines on the MDX website for ways to (get) help.
This project has a Code of Conduct. By interacting with this repository, organisation, or community you agree to abide by its terms.
MIT © Compositor and Vercel
© 2010 - cnpmjs.org x YWFE | Home | YWFE