This is my fault. I’m trying to allow horizontal scrolling when tex.block is too wide, so I added overflow-x: auto. But I don’t want overflow-y, so I’m not sure yet what’s going wrong here. My apologies. I’ll try to fix my solution (or revert it).
I have reverted this change and the fix should be live in a few minutes. I’d still like to enable horizontal scrolling for wide tex.block’s, but it looks like it won’t be possible with simple CSS. Suggestions welcome.
No worries. When I looked before it didn’t look like the KaTeX people had any especially good ideas for making KaTeX-rendered display math more mobile-friendly.
Personally I don’t much like the horizontal scrollbar solution on websites where I have seen it used, but it is better than just overflowing off the right side with no ability to see chopped-off content at all.
Personally my preference on mobile for equations is for them to be just shrunk so that they fit on the page, but with the mobile browsers’ ability to zoom not disabled, so any equation that is illegibly small can be expanded.