mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 08:41:37 +00:00
fix type error
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user