We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7c4bce commit 8a5f94aCopy full SHA for 8a5f94a
mdbook-spec/src/lib.rs
@@ -98,7 +98,9 @@ impl Spec {
98
.iter()
99
.map(|(rule_id, (_, path))| {
100
let relative = pathdiff::diff_paths(path, current_path).unwrap();
101
- format!("[{rule_id}]: {}#r-{rule_id}\n", relative.display())
+ // Adjust paths for Windows.
102
+ let relative = relative.display().to_string().replace('\\', "/");
103
+ format!("[{rule_id}]: {}#r-{rule_id}\n", relative)
104
})
105
.collect();
106
format!(
0 commit comments