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" ;
2
1
import { defineConfig , defineDocs } from "fumadocs-mdx/config" ;
3
2
import rehypeKatex from "rehype-katex" ;
4
3
import remarkMath from "remark-math" ;
@@ -27,27 +26,7 @@ export const docs = defineDocs({
27
26
28
27
export default defineConfig ( {
29
28
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
- } ,
50
29
remarkPlugins : [ remarkMath ] ,
51
- rehypePlugins : [ rehypeKatex , rehypeCode ] ,
30
+ rehypePlugins : ( v ) => [ rehypeKatex , ... v ] ,
52
31
} ,
53
32
} ) ;
Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ import { Root } from "../components/Root";
5
5
6
6
export { metadata , viewport } from "../metadata" ;
7
7
8
- import "katex/dist/katex.css" ;
9
-
10
8
export default function RootLayout ( { children } : { children : ReactNode } ) {
11
9
return < Root > { children } </ Root > ;
12
10
}
You can’t perform that action at this time.
0 commit comments