File tree 4 files changed +52
-3
lines changed
4 files changed +52
-3
lines changed Original file line number Diff line number Diff line change
1
+ mkdocs-material-9.1.12+insiders-4.34.0 (2023-05-14)
2
+
3
+ * Added support for new overflow mode to auto-fit text in social plugin
4
+ * Reduced subtle rendering bugs in (code) annotations due to subpixel rounding
5
+ * Improved print styles for (code) annotation lists
6
+ * Improved performance of social plugin, now 3x as fast
7
+ * Improved interop of typeset plugin with MkDocstrings
8
+ * Fixed logo location for variants of default template in social plugin
9
+ * Fixed #5446: Built-in typeset plugin picks up headings in code blocks
10
+
1
11
mkdocs-material-9.1.12+insiders-4.33.2 (2023-05-12)
2
12
3
13
* Fixed #5508: Social plugin crashes trying to copy cards on Docker/Windows
Original file line number Diff line number Diff line change 2
2
3
3
## Material for MkDocs Insiders
4
4
5
+ ### 4.34.0 <small >May 14, 2023</small > { id="4.34.0" }
6
+
7
+ - Added support for new overflow mode to auto-fit text in social plugin
8
+ - Reduced subtle rendering bugs in (code) annotations due to subpixel rounding
9
+ - Improved print styles for (code) annotation lists
10
+ - Improved performance of social plugin, now 3x as fast
11
+ - Improved interop of typeset plugin with MkDocstrings
12
+ - Fixed logo location for variants of default template in social plugin
13
+ - Fixed #5446 : Built-in typeset plugin picks up headings in code blocks
14
+
5
15
### 4.33.2 <small >May 12, 2023</small > { id="4.33.2" }
6
16
7
17
- Fixed #5508 : Social plugin crashes trying to copy cards on Docker/Windows
Original file line number Diff line number Diff line change @@ -691,16 +691,45 @@ descender.[^2] This renders:
691
691
692
692
# ### Overflow
693
693
694
- If the text overflows the layer, it is automatically truncated and an ellipsis
695
- is appended, e.g. :
694
+ If the text overflows the layer, there are two possible behaviors : either the
695
+ text is automatically truncated and shortened with an ellipsis, or the text is
696
+ automatically scaled down to fit the layer :
696
697
697
698
` ` ` { .markdown .no-copy }
698
699
# If we use a very long headline, we can see how the text will be truncated
699
700
` ` `
700
701
701
- ![Layer typography ellipsis]
702
+ === ":octicons-ellipsis-16 : Ellipsis"
703
+
704
+ ![Layer typography ellipsis]
705
+
706
+ === ":material-arrow-collapse : Shrink"
707
+
708
+ ![Layer typography shrink]
709
+
710
+ While truncating with an ellipsis is the default, auto-shrinking can be enabled
711
+ by setting `overflow` to `shrink` :
712
+
713
+ ` ` ` yaml hl_lines="7"
714
+ size: { width: 1200, height: 630 }
715
+ layers:
716
+ - size: { width: 832, height: 310 }
717
+ offset: { x: 62, y: 160 }
718
+ typography:
719
+ content: "{{ page.title }}"
720
+ overflow: shrink
721
+ align: start
722
+ color: white
723
+ line:
724
+ amount: 3
725
+ height: 1.25
726
+ font:
727
+ family: Roboto
728
+ style: Bold
729
+ ` ` `
702
730
703
731
[Layer typography ellipsis] : ../assets/screenshots/social-cards-layer-typography-ellipsis.png
732
+ [Layer typography shrink] : ../assets/screenshots/social-cards-layer-typography-shrink.png
704
733
705
734
# ### Alignment
706
735
You can’t perform that action at this time.
0 commit comments