protect_inline_math function

Find and protect all inline math elements