Skip to content

Commit

Permalink
🤺 ensure leading slash on location
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejpurves authored and fwkoch committed Aug 21, 2023
1 parent a5b188a commit cf8b649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/myst-cli/src/process/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export async function loadFile(

let location = file;
if (projectPath) {
location = path.relative(projectPath, file);
location = `/${path.relative(projectPath, file)}`;
}
// ensure forward slashes and not windows backslashes
location = location.replaceAll('\\', '/');
Expand Down

0 comments on commit cf8b649

Please sign in to comment.