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(remarkRehype)
|
||||||
.use(remarkGfm)
|
.use(remarkGfm)
|
||||||
.use(rehypeHighlight)
|
.use(rehypeHighlight)
|
||||||
// @ts-expect-error: the react types are missing.
|
|
||||||
.use(rehypeReact, production)
|
.use(rehypeReact, production)
|
||||||
.processSync(`\`\`\`${file.language ?? ''}\n${fileContent}`).result;
|
.processSync(`\`\`\`${file.language ?? ''}\n${fileContent}`).result;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user