httpjamesm / AnonymousOverflow

View StackOverflow in privacy and without the clutter.
https://code.whatever.social
Mozilla Public License 2.0
279 stars 28 forks source link

Some math symbols not rendered correctly #126

Open opusforlife2 opened 6 months ago

opusforlife2 commented 6 months ago

What's Happening?

As seen here https://overflow.smnz.de/exchange/astronomy/questions/2422/how-many-earths-fit-in-the-observable-universe, the answer has two paras. The math in the second para renders properly, but the one in the first para doesn't. They both render correctly on the original site.

Affected Platforms:

Version: 1.12.1

Browser:

httpjamesm commented 6 months ago

Looks like a variance in latex interpretation. Katex doesn't like the \mbox. But using \space works just fine. image

Not sure if fixing this is in the scope of this project since it's an external library

opusforlife2 commented 6 months ago

Oh. Might be worth it to forward this bug to them? No need to change libraries then. Since AO is designed for Stack websites, which happen to use this syntax, it does seem like an important bug to fix.

sgvictorino commented 6 months ago

https://github.com/KaTeX/KaTeX/issues/2050 mentions \mbox support, but I don't think there's a standalone issue.