protect_math function

Protect math elements from commonmark's character escape