Skip to content

Commit 3fc1a5f

Browse files
committed
keeping source config as it is
1 parent 7af21be commit 3fc1a5f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

apps/developer-hub/source.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { rehypeCode } from "fumadocs-core/mdx-plugins";
12
import { defineConfig, defineDocs } from "fumadocs-mdx/config";
23
import rehypeKatex from "rehype-katex";
34
import remarkMath from "remark-math";
@@ -47,6 +48,6 @@ export default defineConfig({
4748
},
4849
},
4950
remarkPlugins: [remarkMath],
50-
rehypePlugins: (v) => [rehypeKatex, ...v],
51+
rehypePlugins: [rehypeKatex, rehypeCode],
5152
},
5253
});
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import type { ReactNode } from "react";
2-
import "katex/dist/katex.css";
32

43
import { Root } from "../components/Root";
54

65
export { metadata, viewport } from "../metadata";
76

7+
import "katex/dist/katex.css";
8+
89
export default function RootLayout({ children }: { children: ReactNode }) {
910
return <Root>{children}</Root>;
1011
}

pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)