Closed AugustinMauroy closed 1 year ago
Yep, this is possible:
import { compileMDX } from 'next-mdx-remote/rsc'
...
async function Page() {
const { content } = await compileMDX({
source: '<Test />',
components: { Test: () => <>Hello world</> }
})
return content
}
Thanks a lot for everything !
My question/feature proposal is it possible to have custom components by compiling the mdx with the
compileMDX
function?