Skip to content

Commit

Permalink
fix($markdown-loader): always use / instead of \ in relPath (#1484
Browse files Browse the repository at this point in the history
)
  • Loading branch information
shigma authored and ulivz committed Mar 27, 2019
1 parent 7848a30 commit 944ebe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vuepress/markdown-loader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 944ebe4

Please sign in to comment.