Mist highlighting

This commit is contained in:
2026-05-14 01:17:15 +02:00
parent 6dca342d6b
commit 05eab4145c
3 changed files with 243 additions and 5 deletions
+8 -1
View File
@@ -5,6 +5,7 @@ import {
} from "fumadocs-mdx/config";
import { metaSchema, pageSchema } from "fumadocs-core/source/schema";
import { z } from "zod";
import mist from "./public/mist.tmLanguage.json";
// You can customize Zod schemas for frontmatter and `meta.json` here
// see https://fumadocs.dev/docs/mdx/collections
@@ -33,6 +34,12 @@ export const blogPosts = defineCollections({
export default defineConfig({
mdxOptions: {
// MDX options
rehypeCodeOptions: {
langs: [mist],
themes: {
light: "github-light",
dark: "github-dark",
},
},
},
});