File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -105,9 +105,10 @@ impl Spec {
105
105
}
106
106
format ! (
107
107
"<div class=\" rule\" id=\" r-{rule_id}\" >\
108
- <a class=\" rule-link\" href=\" #r-{rule_id}\" >[{rule_id }]</a>\
108
+ <a class=\" rule-link\" href=\" #r-{rule_id}\" >[{rule_id_broken }]</a>\
109
109
{test_html}\
110
- </div>\n "
110
+ </div>\n ",
111
+ rule_id_broken = rule_id. replace( "." , "<wbr>." ) ,
111
112
)
112
113
} )
113
114
. to_string ( )
Original file line number Diff line number Diff line change @@ -284,6 +284,8 @@ main > .rule {
284
284
float : right;
285
285
text-align : right;
286
286
padding-right : 10px ;
287
+ /* We add `<wbr>` ourselves and only want breaks there */
288
+ word-break : keep-all;
287
289
/* Remove the blue coloring of links on rules that mdbook normally sets. */
288
290
color : # 999 !important ;
289
291
}
You can’t perform that action at this time.
0 commit comments