hirschan / Dark-Mode-Wikipedia

A Firefox extension, primarily suited for the English Wikipedia site.
https://addons.mozilla.org/firefox/addon/dark-mode-for-wikipedia/
MIT License
39 stars 8 forks source link

LaTeX appears black. #14

Closed jjderooy closed 2 years ago

jjderooy commented 2 years ago

Hello. I am running Firefox 95.0.2 on arch Linux.

LaTeX is appearing as its default black font making it almost invisible against the dark background that the extension creates. For example the wiki page on factorial without the extension appears as expected: image

With the extension however: image

This makes the extension pretty unusable for most science and mathematics related articles as LaTeX is so ubiquitous. Otherwise the extension is fantastic.

Thanks!

hirschan commented 2 years ago

Hi, thank you for your finding! These formulas are posted as images (with black text) and my only option is to change the background color to grey:

Screenshot 2022-01-02 at 11-45-43 Factorial - Wikipedia

I hope the coloring is okay for you, if not let me know. I will update the extension shortly :-)

jjderooy commented 2 years ago

Hi @hirschan. I decided to try fixing the issue myself and made a PR. I hope that's ok and you haven't already spent time fixing it yourself. The change I made adjusts the font color to white rather than changing the background color as you suggested.