Skip to content

Commit 1f9ea21

Browse files
committed
title rule links
i.e. they'll show their id on hover; good for when they are wrapped or hidden.
1 parent ce4c198 commit 1f9ea21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mdbook-spec/src/rules.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ impl Spec {
105105
}
106106
format!(
107107
"<div class=\"rule\" id=\"r-{rule_id}\">\
108-
<a class=\"rule-link\" href=\"#r-{rule_id}\"><span>[{rule_id_broken}]<span/></a>\
108+
<a class=\"rule-link\" href=\"#r-{rule_id}\" title=\"{rule_id}\"><span>[{rule_id_broken}]<span/></a>\
109109
{test_html}\
110110
</div>\n",
111111
rule_id_broken = rule_id.replace(".", "<wbr>."),

0 commit comments

Comments
 (0)