Skip to content

Commit

Permalink
fix: dont use backslash for URLs on windows
Browse files Browse the repository at this point in the history
Generating markdown on Windows uses the OS path seperator, backslash, not a valid URL path seperator

fix #211
  • Loading branch information
AndyOGo committed Jan 30, 2020
1 parent 594ea4f commit 5149522
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ async function main(args) {
const target = npath.relative(
mddir,
npath.resolve(schemadir, npath.relative(srcdir, origin)),
);
).split(npath.sep).join(npath.posix.sep);
return target;
},
}),
Expand Down

0 comments on commit 5149522

Please sign in to comment.