Replies: 1 comment 5 replies
-
I'm not sure, whether you're aware of that setting (or if there's a bug), but you should be able to use the size: { width: 1200, height: 630 }
layers:
- size: { width: 832, height: 310 }
offset: { x: 62, y: 160 }
typography:
content: "{{ page.title }}"
overflow: shrink
align: start
color: white
line:
amount: 3
height: 1.25
font:
family: Roboto
style: Bold Other than that, we're currently knee-deep in foundational work, so we're only fixing bugs right now. However, you could open a feature request if the setting mentioned above doesn't lead to the desired outcome, which we can implement later. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We use mkdocs-material-insiders for our PowerShell module documentation, and it's common to have long command names in
Verb-Noun
syntax where there are no spaces, there's usually a hyphen, and we use pascal case likeAdd-VmsLoginProviderClaim
.The doc pages for each command are titled using the command name, and that leads to social cards with truncated title strings like this:
I can see in
src/plugins/social/plugin.py
on line 578 that words are split on whitespace usingwords = re.split(r"\s+", unescape(typography.content))
. Is there any merit in adding another option to configure the overflow behavior by making the regex pattern used to break text configurable? In my case I might break on "-" characters, but I could imagine others breaking on "." or "/" for example? I could see this being a fairly low-impact and specific issue for the broader user base though, and "fixing it" adding unnecessary complexity.As I understand it, my alternatives for getting my long titles to fit properly right now include...
\u200B
to "trick" the overflow behavior to wrap the line?Beta Was this translation helpful? Give feedback.
All reactions