File tree Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ <h2>Contents</h2>
67
67
< li > < a href ="#table-column-aligment "> Table Column Alignment</ a > </ li >
68
68
</ ol >
69
69
</ li >
70
+ < li > < a href ="#auto-hyphenation "> Automatic Hyphenation</ a > </ li >
70
71
</ ol >
71
72
</ li >
72
73
< li > < a href ="#language-support "> Language Support</ a > </ li >
@@ -247,6 +248,15 @@ <h4 id="table-column-aligment">Table Column Alignment</h4>
247
248
248
249
< p > See full examples in the < a href ="#tables "> section about tables</ a > .</ p >
249
250
251
+ < h4 id ="auto-hyphenation "> Automatic Hyphenation</ h4 >
252
+ < p >
253
+ By default, hyphenation is allowed for all words in the document when text wraps
254
+ across multiple lines, except for code snippets. If you want to avoid this
255
+ behaviour for a specific word (for example, for a hyphenated compound word),
256
+ you can use the < code class ="language-css "> whitespace-nowrap</ code > utility class to
257
+ prevent line breaks inside an element.
258
+ </ p >
259
+
250
260
< h2 id ="language-support "> Language Support</ h2 >
251
261
< p >
252
262
The labels of theorems, definitions, lemmas and proofs can be changed
Original file line number Diff line number Diff line change @@ -197,14 +197,16 @@ body {
197
197
background-color : var (--body-bg-color );
198
198
199
199
text-rendering : optimizeLegibility;
200
- }
201
200
202
- /* Justify and hyphenate all paragraphs */
203
- p {
204
- text-align : justify;
201
+ /* Allow automatic hyphenation for all text in the document */
205
202
hyphens : auto;
206
203
-webkit-hyphens : auto;
207
204
-moz-hyphens : auto;
205
+ }
206
+
207
+ /* Justify all paragraphs */
208
+ p {
209
+ text-align : justify;
208
210
margin-top : 1rem ;
209
211
}
210
212
@@ -682,6 +684,11 @@ input.sidenote-toggle {
682
684
line-height : 1ex ;
683
685
}
684
686
687
+ /* Prevent line breaks inside an element */
688
+ .whitespace-nowrap {
689
+ white-space : nowrap;
690
+ }
691
+
685
692
/* Heading typography */
686
693
h1 {
687
694
font-size : 2.5rem ;
You can’t perform that action at this time.
0 commit comments