fix mathjax rendering after sync edit