body[data-theme="light"] .math img, body[data-theme="light"] img.math {
  filter: invert(100%);
}

@media (prefers-color-scheme: light) {
  body[data-theme="auto"] .math img, body[data-theme="auto"] img.math {
    filter: invert(100%);
  }
}
