From faa186dc363b51293c15d59c0ac376f984cb5b9d Mon Sep 17 00:00:00 2001 From: tgreyuk Date: Fri, 28 Jun 2024 00:02:23 +0100 Subject: [PATCH] fix(core): normalize window paths when "publicPath" is set (#639) --- .../typedoc-plugin-markdown/src/theme/markdown-themeContext.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/typedoc-plugin-markdown/src/theme/markdown-themeContext.ts b/packages/typedoc-plugin-markdown/src/theme/markdown-themeContext.ts index 789b33a6f..1eef9e9cf 100644 --- a/packages/typedoc-plugin-markdown/src/theme/markdown-themeContext.ts +++ b/packages/typedoc-plugin-markdown/src/theme/markdown-themeContext.ts @@ -136,7 +136,7 @@ export class MarkdownThemeContext { const publicPath = this.options.getValue('publicPath'); if (publicPath && !ignorePublicPath) { - return encodeURI(path.join(publicPath, url)); + return encodeURI(path.join(publicPath, url).replace(/\\/g, '/')); } const baseUrl = path.relative(