I suggest you...

Very simple way to fix dark mode equation display problem. Literally 10 character fix included.

If you are using the dark mode setting with wikiwand pages that contain complex mathematical portions become impossible to see because they are rendered in black against the black background. This is super annoying and after getting tired of having to work around this I realized a code addition of just 10 characters will fix this issue.

The problem arises because wikipedia renders complex math written in latex as SVG objects on the page. Wikiwand does nothing to these images, leaving them impossible to see.

The fix is to add filter:invert(90%) to the img style tag. That's all. It's that easy. With this tweak the math becomes nearly, but not purely, white; allowing it to be easily read and recognized.

Obviously you do not want to apply this filter to normal images and this is made very easy as well because math displayed on wikipedia is always contained within span of class "mwe-math-element" making this fix both easy to do and easy to pinpoint its effect.

Thanks,

34 votes
Vote
Sign in
(thinking…)
Password icon
Signed in as (Sign out)
You have left! (?) (thinking…)
Justin shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

2 comments

Sign in
(thinking…)
Password icon
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base