next-app-with-squiggle/next.config.mjs
2022-08-01 03:43:16 -04:00

18 lines
417 B
JavaScript

import nextMdx from '@next/mdx'
import remarkMath from 'remark-math'
import rehypeMathjax from 'rehype-mathjax'
const withMDX = nextMdx({
extension: /\.mdx?$/,
options: {
providerImportSource: '@mdx-js/react',
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeMathjax],
},
})
export default withMDX({
// Support MDX files as pages:
pageExtensions: ['md', 'mdx', 'tsx', 'ts', 'jsx', 'js'],
})