Fix formula highlighting in Safari.

This closes #2.