Open beepmo opened 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.
\color
We could instead highlight by setting background, mathItem.parentElement.style.background = 'red'.
mathItem.parentElement.style.background = 'red'
Considerations:
find a smaller parent element!
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:
\color
brackets around the smallest syntactically correct latex element that includes the user input