Skip to content
Snippets Groups Projects
Commit a37ae5b3 authored by Joseph Zeng's avatar Joseph Zeng
Browse files

add math

parent e0d3e6b1
No related branches found
No related tags found
No related merge requests found
Pipeline #148066 passed
import nextMDX from "@next/mdx";
import remarkGfm from "remark-gfm";
import rehypeMathjax from "rehype-mathjax";
import remarkMath from "remark-math";
const withMDX = nextMDX({
extension: /\.mdx?$/,
options: {
remarkPlugins: [remarkGfm],
rehypePlugins: [],
remarkPlugins: [remarkMath, remarkGfm],
rehypePlugins: [rehypeMathjax],
// If you use `MDXProvider`, uncomment the following line.
providerImportSource: "@mdx-js/react",
},
});
export default withMDX({
// Append the default value with md extensions
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment