From d0c708df494e87dbb9e9e1fc5b746117de9f4395 Mon Sep 17 00:00:00 2001 From: 3y3 <3y3@ya.ru> Date: Thu, 17 Oct 2024 19:11:57 +0300 Subject: [PATCH] fix: Fix depth computation on windows --- src/resolvers/md2html.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resolvers/md2html.ts b/src/resolvers/md2html.ts index a53a9d7b..4df66f56 100644 --- a/src/resolvers/md2html.ts +++ b/src/resolvers/md2html.ts @@ -103,7 +103,7 @@ const getFileProps = async (options: ResolverOptions) => { }, router: { pathname, - depth: inputPath.split('/').length, + depth: inputPath.replace(/\\/g, '/').split('/').length, }, lang, langs,