We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e5029a1 + 6369458 commit c118ff6Copy full SHA for c118ff6
mdbook-spec/src/lib.rs
@@ -84,8 +84,8 @@ impl Spec {
84
}
85
86
format!(
87
- "<div class=\"rule\" id=\"{rule_id}\">\
88
- <a class=\"rule-link\" href=\"#{rule_id}\">[{rule_id}]</a>\
+ "<div class=\"rule\" id=\"r-{rule_id}\">\
+ <a class=\"rule-link\" href=\"#r-{rule_id}\">[{rule_id}]</a>\
89
</div>\n"
90
)
91
})
@@ -104,7 +104,7 @@ impl Spec {
104
.iter()
105
.map(|(rule_id, (_, path))| {
106
let relative = pathdiff::diff_paths(path, current_path).unwrap();
107
- format!("[{rule_id}]: {}#{rule_id}\n", relative.display())
+ format!("[{rule_id}]: {}#r-{rule_id}\n", relative.display())
108
109
.collect();
110
0 commit comments