File tree Expand file tree Collapse file tree 2 files changed +1
-24
lines changed Expand file tree Collapse file tree 2 files changed +1
-24
lines changed Original file line number Diff line number Diff line change 1- import { rehypeCode } from "fumadocs-core/mdx-plugins" ;
21import { defineConfig , defineDocs } from "fumadocs-mdx/config" ;
32import rehypeKatex from "rehype-katex" ;
43import remarkMath from "remark-math" ;
@@ -27,27 +26,7 @@ export const docs = defineDocs({
2726
2827export default defineConfig ( {
2928 mdxOptions : {
30- rehypeCodeOptions : {
31- langs : [
32- "solidity" ,
33- "ts" ,
34- "bash" ,
35- "js" ,
36- "json" ,
37- "md" ,
38- "mdx" ,
39- "python" ,
40- "rust" ,
41- "sh" ,
42- "yaml" ,
43- ] ,
44- inline : "tailing-curly-colon" ,
45- themes : {
46- light : "github-light" ,
47- dark : "github-dark" ,
48- } ,
49- } ,
5029 remarkPlugins : [ remarkMath ] ,
51- rehypePlugins : [ rehypeKatex , rehypeCode ] ,
30+ rehypePlugins : ( v ) => [ rehypeKatex , ... v ] ,
5231 } ,
5332} ) ;
Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ import { Root } from "../components/Root";
55
66export { metadata , viewport } from "../metadata" ;
77
8- import "katex/dist/katex.css" ;
9-
108export default function RootLayout ( { children } : { children : ReactNode } ) {
119 return < Root > { children } </ Root > ;
1210}
You can’t perform that action at this time.
0 commit comments