From cb24fb9683634a71d406e07053de51e72c73fb5b Mon Sep 17 00:00:00 2001 From: DIYgod Date: Fri, 12 May 2023 12:31:24 +0100 Subject: [PATCH] fix: type error --- src/markdown/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/markdown/index.ts b/src/markdown/index.ts index 5bbe86c0..af1c3fa5 100644 --- a/src/markdown/index.ts +++ b/src/markdown/index.ts @@ -21,12 +21,12 @@ import rehypeStringify from "rehype-stringify" import remarkBreaks from "remark-breaks" import remarkDirective from "remark-directive" import remarkDirectiveRehype from "remark-directive-rehype" +import emoji from "remark-emoji" import remarkFrontmatter from "remark-frontmatter" import remarkGfm from "remark-gfm" import remarkMath from "remark-math" import remarkParse from "remark-parse" import remarkRehype from "remark-rehype" -import emoji from "remark-emoji" import { unified } from "unified" import { Style } from "~/components/common/Style" @@ -233,7 +233,7 @@ export const renderPageContent = ( } result = pipeline - .use(() => (tree) => { + .use(() => (tree: Root) => { env.tree = tree }) .processSync(content)