From beb8931fcf1cd5e5403ee27b64a3402064d1ec06 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 789b33a6..1eef9e9c 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(