Use existing Remark components

This commit is contained in:
Marcus Blättermann 2022-11-13 23:22:00 +01:00
parent c48c8d55e7
commit 2a97e897a6
No known key found for this signature in database
GPG Key ID: A1E1F04008AC450D
2 changed files with 2 additions and 5 deletions

View File

@ -1,3 +0,0 @@
const mdxComponents = {}
export default mdxComponents

View File

@ -1,10 +1,10 @@
import type { AppProps } from 'next/app'
import { MDXProvider } from '@mdx-js/react'
import mdxComponents from '../components/mdxComponents'
import { remarkComponents } from '../src/remark'
export default function App({ Component, pageProps }: AppProps) {
return (
<MDXProvider components={mdxComponents}>
<MDXProvider components={remarkComponents}>
<Component {...pageProps} />
</MDXProvider>
)