Skip to content

Commit 7ca1db2

Browse files
committed
keep rehypecode options
1 parent 9e95516 commit 7ca1db2

File tree

2 files changed

+83
-278
lines changed

2 files changed

+83
-278
lines changed

apps/developer-hub/source.config.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,26 @@ export const docs = defineDocs({
2626

2727
export default defineConfig({
2828
mdxOptions: {
29+
rehypeCodeOptions: {
30+
langs: [
31+
"solidity",
32+
"ts",
33+
"bash",
34+
"js",
35+
"json",
36+
"md",
37+
"mdx",
38+
"python",
39+
"rust",
40+
"sh",
41+
"yaml",
42+
],
43+
inline: "tailing-curly-colon",
44+
themes: {
45+
light: "github-light",
46+
dark: "github-dark",
47+
},
48+
},
2949
remarkPlugins: [remarkMath],
3050
rehypePlugins: (v) => [rehypeKatex, ...v],
3151
},

0 commit comments

Comments
 (0)