mdx-jsx
0.0.2 • Public • Published mdx-jsx
Turn MDX into a pretty JSX string.
Usage
const toJSX = require('mdx-jsx')
const mdx = `
# Hello mdx-jsx
<Button>
Beep
</Button>
`
const jsx = toJSX(mdx, {
components: {
h1: 'Heading'
}
})
Options
components
(object) component names to be used for each markdown element
CLI
mdx-jsx docs/hello.mdx --out-dir dist
Package Sidebar
Install
Weekly Downloads