mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-27 09:44:36 +03:00
Use existing Remark components
This commit is contained in:
parent
c48c8d55e7
commit
2a97e897a6
|
@ -1,3 +0,0 @@
|
||||||
const mdxComponents = {}
|
|
||||||
|
|
||||||
export default mdxComponents
|
|
|
@ -1,10 +1,10 @@
|
||||||
import type { AppProps } from 'next/app'
|
import type { AppProps } from 'next/app'
|
||||||
import { MDXProvider } from '@mdx-js/react'
|
import { MDXProvider } from '@mdx-js/react'
|
||||||
import mdxComponents from '../components/mdxComponents'
|
import { remarkComponents } from '../src/remark'
|
||||||
|
|
||||||
export default function App({ Component, pageProps }: AppProps) {
|
export default function App({ Component, pageProps }: AppProps) {
|
||||||
return (
|
return (
|
||||||
<MDXProvider components={mdxComponents}>
|
<MDXProvider components={remarkComponents}>
|
||||||
<Component {...pageProps} />
|
<Component {...pageProps} />
|
||||||
</MDXProvider>
|
</MDXProvider>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user