From e1c34c99c1b6635cac8dc5435fe5fae2b9e48e5a Mon Sep 17 00:00:00 2001 From: xfy Date: Thu, 24 Oct 2024 09:24:11 +0800 Subject: [PATCH] fix type error --- components/pages/gists/gists-code.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/components/pages/gists/gists-code.tsx b/components/pages/gists/gists-code.tsx index b9f8530..61254ed 100644 --- a/components/pages/gists/gists-code.tsx +++ b/components/pages/gists/gists-code.tsx @@ -34,7 +34,6 @@ const GistsCode = ({ file, showFileName = false }: Props) => { .use(remarkRehype) .use(remarkGfm) .use(rehypeHighlight) - // @ts-expect-error: the react types are missing. .use(rehypeReact, production) .processSync(`\`\`\`${file.language ?? ''}\n${fileContent}`).result;