ESdog / NWHacks_Whisperer

0 stars 0 forks source link

highlight mathjax via setting background #8

Open beepmo opened 1 year ago

beepmo commented 1 year ago

Currently, we use the latex \color command to make MathJax render our highlights in colour. This is bottlenecked by MathJax's queue implementation.

We could instead highlight by setting background, mathItem.parentElement.style.background = 'red'.

Considerations:

beepmo commented 1 year ago

find a smaller parent element!