mdx-jsx
v0.0.2
Published
Transpile MDX to pretty JSX
Downloads
4
Maintainers
Readme
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