Fix type error
This commit is contained in:
+1
-1
@@ -35,7 +35,7 @@ export const blogPosts = defineCollections({
|
|||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
mdxOptions: {
|
mdxOptions: {
|
||||||
rehypeCodeOptions: {
|
rehypeCodeOptions: {
|
||||||
langs: [mist],
|
langs: [mist as any],
|
||||||
themes: {
|
themes: {
|
||||||
light: "github-light",
|
light: "github-light",
|
||||||
dark: "github-dark",
|
dark: "github-dark",
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ interface Props {
|
|||||||
|
|
||||||
const highlighterPromise = createHighlighter({
|
const highlighterPromise = createHighlighter({
|
||||||
themes: ["github-dark"],
|
themes: ["github-dark"],
|
||||||
langs: [mist],
|
langs: [mist as any],
|
||||||
});
|
});
|
||||||
|
|
||||||
export default function MorphCode({ code }: Props) {
|
export default function MorphCode({ code }: Props) {
|
||||||
|
|||||||
Reference in New Issue
Block a user