Skip to content

Conversation

@gfmortega
Copy link
Contributor

By adding a wrapping div to the contents of a center, I fixed the bug where "I \textit{styled} this" would be rendered incorrectly.

However, that wrapping div now no longer inherits the centering from the flex-box. it still gets the text-align, but specifically images look wrong now:

image

I'll temporarily remove the inner div so that this doesnt look broken, and find the proper bugfix later.

@gfmortega gfmortega changed the title Undo "bugfix" to center which had introduced a new bug More proper fix to buggy center behavior Mar 14, 2025
@jabbawookiees jabbawookiees merged commit 8f6f074 into main Mar 14, 2025
1 check passed
@jabbawookiees jabbawookiees deleted the undo-buggy-center-behavior branch March 14, 2025 19:18
@gfmortega
Copy link
Contributor Author

We can keep the wrapping div as long as the images are set to inline-block

image

This is not consistent with Codeforces, but more consistent with LaTeX in general

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants