fix type error

This commit is contained in:
xfy
2024-10-24 09:24:11 +08:00
parent efe815761c
commit e1c34c99c1

View File

@ -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;