[web] Pass def, let, and (re)newenvironment to mathjax GitOrigin-RevId: b79b656024bcaddd1bd96a4b9ed297de2de043e3