kiwix / kiwix-js-pwa

Kiwix JS Offline Browser implemented as a Progressive Web App (PWA), and packaged as Electron, NWJS and UWP apps for Windows and Linux.
https://pwa.kiwix.org
GNU General Public License v3.0
191 stars 32 forks source link

Math text bug #664

Open Aphexus opened 1 month ago

Aphexus commented 1 month ago

Using Kiwix JS(not sure if it has the issue in others) on the page "Ping Pong Lemma" under examples the Math text is not showing up correctly:

Consider the standard action of SL2(Z) on R2 by [inear transformations. Put X1 = ... |\right}}" loading="lazy">

For some reason the \right} is not being shown as a large bracket. Could be malformed in the page but likely not.

Image

Jaifroid commented 4 weeks ago

@Aphexus I believe this is the PWA, correct? So I've transferred the issue here. Just so you're aware, there is a workaround for Wikipedia ZIMs, which si to use the image versions of the equations rather than to use KaTeX to transform the MathML. Go to Configuration -> Performance/Compatibility -> Mathematical and chemical equations... Now, click "Use SVG fallback images", and see if that fixes this issue.

In terms of fixing KaTeX's rendering, this is probably because of some unrecognized MathML in the current KaTeX version. I believe we should update KaTeX before trying anything else.

Jaifroid commented 3 weeks ago

This is related to #627.