diff --git a/packages/@vuepress/markdown-loader/index.js b/packages/@vuepress/markdown-loader/index.js index 552ad652eb..196d9344b2 100644 --- a/packages/@vuepress/markdown-loader/index.js +++ b/packages/@vuepress/markdown-loader/index.js @@ -65,7 +65,7 @@ module.exports = function (src) { } = markdown.render(content, { loader, frontmatter: data, - relPath: path.relative(sourceDir, file) + relPath: path.relative(sourceDir, file).replace(/\\/g, '/') }) // check if relative links are valid