diff --git a/source.config.ts b/source.config.ts index 5f14773..9c8b745 100644 --- a/source.config.ts +++ b/source.config.ts @@ -35,7 +35,7 @@ export const blogPosts = defineCollections({ export default defineConfig({ mdxOptions: { rehypeCodeOptions: { - langs: [mist], + langs: [mist as any], themes: { light: "github-light", dark: "github-dark", diff --git a/src/components/Morph.tsx b/src/components/Morph.tsx index c390ab5..2d0dae6 100644 --- a/src/components/Morph.tsx +++ b/src/components/Morph.tsx @@ -11,7 +11,7 @@ interface Props { const highlighterPromise = createHighlighter({ themes: ["github-dark"], - langs: [mist], + langs: [mist as any], }); export default function MorphCode({ code }: Props) {