Revert "Revert "math button""

This reverts commit 3a29b936eb2255a670e39a02fd575dd71fd5c382.
Revert "Math mode + minor bugs"

This reverts commit 25b499d727496084aade600f846878b06743fe2d.
Revert "Revert "Math mode + minor bugs""

This reverts commit b24221e2a8c84c1adec86e5ff1c2fbbb88afe712.
Revert "Revert "Revert "math button"""

This reverts commit 42ecfa71aec95206d983ecddc8c8dd1b7c67eb5b.
Revert "Revert "math button""

This reverts commit 3a29b936eb2255a670e39a02fd575dd71fd5c382.