diff --git a/packages/core/src/page/renderPageToVue.ts b/packages/core/src/page/renderPageToVue.ts index 14f6fb8311..d6a7c021a7 100644 --- a/packages/core/src/page/renderPageToVue.ts +++ b/packages/core/src/page/renderPageToVue.ts @@ -1,4 +1,5 @@ import { isString } from '@vuepress/shared' +import { path } from '@vuepress/utils' import type { App, Page } from '../types/index.js' const TEMPLATE_WRAPPER_TAG_OPEN = '
' @@ -10,6 +11,13 @@ const SCRIPT_TAG_CLOSE = '' const SCRIPT_TAG_OPEN_LANG_TS_REGEX = /<\s*script[^>]*\blang=['"]ts['"][^>]*/ const SCRIPT_TAG_OPEN_LANG_TS = '