Yuki Takei 2 лет назад
Родитель
Сommit
67ac1fa89d
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      packages/remark-lsx/src/utils/page-node.ts

+ 3 - 2
packages/remark-lsx/src/utils/page-node.ts

@@ -1,6 +1,7 @@
 import * as url from 'url';
 
-import { IPageHasId, ParseRangeResult, pathUtils } from '@growi/core';
+import type { IPageHasId, ParseRangeResult } from '@growi/core';
+import { removeTrailingSlash } from '@growi/core/dist/utils/path-utils';
 
 import type { PageNode } from '../interfaces/page-node';
 
@@ -8,7 +9,7 @@ import { getDepthOfPath } from './depth-utils';
 
 
 function getParentPath(path: string) {
-  return pathUtils.removeTrailingSlash(decodeURIComponent(url.resolve(path, './')));
+  return removeTrailingSlash(decodeURIComponent(url.resolve(path, './')));
 }
 
 /**