Added math and text highlighting