split, placehold, and replace math and text
First working divs for theoremenvs. Needs work, but sleep now.