From 5b20eba3d9141fce0d6993070c7de05da8a5e861 Mon Sep 17 00:00:00 2001 From: bingling-sama Date: Sun, 23 Jun 2024 15:50:00 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(plugin):=20fix=20markdown-it?= =?UTF-8?q?=20plugin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vitepress/config.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.vitepress/config.ts b/.vitepress/config.ts index 5a76668..d241a1d 100644 --- a/.vitepress/config.ts +++ b/.vitepress/config.ts @@ -319,15 +319,13 @@ export default withPwa( }, lineNumbers: true, config: (md) => { - // @ts-expect-error TS2769 md.use( - BiDirectionalLinks({ + () => BiDirectionalLinks({ dir: "docs", - baseDir: "/", - }), + baseDir: "/" + }) ), - // @ts-expect-error TS2769 - md.use(InlineLinkPreviewElementTransform) + md.use(() => InlineLinkPreviewElementTransform) }, },