Skip to content

Commit 944ebe4

Browse files
shigmaulivz
authored andcommitted
fix($markdown-loader): always use / instead of \ in relPath (#1484)
1 parent 7848a30 commit 944ebe4

File tree

1 file changed

+1
-1
lines changed
  • packages/@vuepress/markdown-loader

1 file changed

+1
-1
lines changed

packages/@vuepress/markdown-loader/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ module.exports = function (src) {
6565
} = markdown.render(content, {
6666
loader,
6767
frontmatter: data,
68-
relPath: path.relative(sourceDir, file)
68+
relPath: path.relative(sourceDir, file).replace(/\\/g, '/')
6969
})
7070

7171
// check if relative links are valid

0 commit comments

Comments
 (0)