Added math_delimiter config option and math spans protection.