Skip to content

Commit ea49176

Browse files
committed
Prepare 9.1.12+insiders-4.34.0 release
1 parent ba5f249 commit ea49176

File tree

4 files changed

+52
-3
lines changed

4 files changed

+52
-3
lines changed

CHANGELOG

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
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+
111
mkdocs-material-9.1.12+insiders-4.33.2 (2023-05-12)
212

313
* Fixed #5508: Social plugin crashes trying to copy cards on Docker/Windows
Loading

docs/insiders/changelog.md

+10
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
## Material for MkDocs Insiders
44

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+
515
### 4.33.2 <small>May 12, 2023</small> { id="4.33.2" }
616

717
- Fixed #5508: Social plugin crashes trying to copy cards on Docker/Windows

docs/setup/setting-up-social-cards.md

+32-3
Original file line numberDiff line numberDiff line change
@@ -691,16 +691,45 @@ descender.[^2] This renders:
691691

692692
#### Overflow
693693

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:
696697

697698
``` { .markdown .no-copy }
698699
# If we use a very long headline, we can see how the text will be truncated
699700
```
700701

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+
```
702730

703731
[Layer typography ellipsis]: ../assets/screenshots/social-cards-layer-typography-ellipsis.png
732+
[Layer typography shrink]: ../assets/screenshots/social-cards-layer-typography-shrink.png
704733

705734
#### Alignment
706735

0 commit comments

Comments
 (0)