We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5cdf55 commit 5f19268Copy full SHA for 5f19268
mdbook-spec/src/rules.rs
@@ -105,9 +105,10 @@ impl Spec {
105
}
106
format!(
107
"<div class=\"rule\" id=\"r-{rule_id}\">\
108
- <a class=\"rule-link\" href=\"#r-{rule_id}\">[{rule_id}]</a>\
+ <a class=\"rule-link\" href=\"#r-{rule_id}\">[{rule_id_broken}]</a>\
109
{test_html}\
110
- </div>\n"
+ </div>\n",
111
+ rule_id_broken = rule_id.replace(".", "<wbr>."),
112
)
113
})
114
.to_string()
theme/reference.css
@@ -284,6 +284,8 @@ main > .rule {
284
float: right;
285
text-align: right;
286
padding-right: 10px;
287
+ /* We add `<wbr>` ourselves and only want breaks there */
288
+ word-break: keep-all;
289
/* Remove the blue coloring of links on rules that mdbook normally sets. */
290
color: #999 !important;
291
0 commit comments