File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ <h2>Contents</h2>
6767 < li > < a href ="#table-column-aligment "> Table Column Alignment</ a > </ li >
6868 </ ol >
6969 </ li >
70+ < li > < a href ="#auto-hyphenation "> Automatic Hyphenation</ a > </ li >
7071 </ ol >
7172 </ li >
7273 < li > < a href ="#language-support "> Language Support</ a > </ li >
@@ -247,6 +248,15 @@ <h4 id="table-column-aligment">Table Column Alignment</h4>
247248
248249 < p > See full examples in the < a href ="#tables "> section about tables</ a > .</ p >
249250
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+
250260 < h2 id ="language-support "> Language Support</ h2 >
251261 < p >
252262 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 {
197197 background-color : var (--body-bg-color );
198198
199199 text-rendering : optimizeLegibility;
200- }
201200
202- /* Justify and hyphenate all paragraphs */
203- p {
204- text-align : justify;
201+ /* Allow automatic hyphenation for all text in the document */
205202 hyphens : auto;
206203 -webkit-hyphens : auto;
207204 -moz-hyphens : auto;
205+ }
206+
207+ /* Justify all paragraphs */
208+ p {
209+ text-align : justify;
208210 margin-top : 1rem ;
209211}
210212
@@ -682,6 +684,11 @@ input.sidenote-toggle {
682684 line-height : 1ex ;
683685}
684686
687+ /* Prevent line breaks inside an element */
688+ .whitespace-nowrap {
689+ white-space : nowrap;
690+ }
691+
685692/* Heading typography */
686693h1 {
687694 font-size : 2.5rem ;
You can’t perform that action at this time.
0 commit comments