Skip to content

Commit beb8931

Browse files
committed
fix(core): normalize window paths when "publicPath" is set (#639)
1 parent 956ca03 commit beb8931

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/typedoc-plugin-markdown/src/theme/markdown-themeContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export class MarkdownThemeContext {
136136
const publicPath = this.options.getValue('publicPath');
137137

138138
if (publicPath && !ignorePublicPath) {
139-
return encodeURI(path.join(publicPath, url));
139+
return encodeURI(path.join(publicPath, url).replace(/\\/g, '/'));
140140
}
141141

142142
const baseUrl = path.relative(

0 commit comments

Comments
 (0)