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

Fixes dark LaTeX blocks #15

Closed jjderooy closed 2 years ago

jjderooy commented 2 years ago

Hello. This pull request fixes the issue with dark blocks of LaTeX mentioned in #14.

After some digging around in Wikipedia's CSS it seems there are two types of LaTeX blocks: image-inline and image-display. Originally the extension only adjusted the color of the inline blocks.

This PR adds display blocks as well and is tested to be working on Firefox 95.0.2 on Arch Linux.

I've never made a pull request before so please let me know if I am missing anything. Thanks!

hirschan commented 2 years ago

Wow, good job! I will merge your PR, great work and thank you for contributing :)