From c88a636cf9fa76d36f1b69b6b836f1034bdd69fe Mon Sep 17 00:00:00 2001 From: Shigma <1700011071@pku.edu.cn> Date: Thu, 28 Mar 2019 00:37:36 +0800 Subject: [PATCH] update relpath pattern --- packages/@vuepress/markdown-loader/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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