not embed all latex output in equation environment

If latex output is embeded in $s use equation* environment, else
do not add an additional environment. This allows to use explicitly given
environments as well.
Use markdown2latex filter for heading cells

This takes care of the escapting of special characters in heading cells
Remove console escape characters