提交 944ebe4a 编写于 作者: S Shigma 提交者: ULIVZ

fix($markdown-loader): always use `/` instead of `\` in `relPath` (#1484)

上级 7848a309
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册