Manual:$wgMathDisableTexFilter

Details
Option to disable the tex filter.

If set to true any LaTeX expression is parsed this can be a potential security risk.

If set to false only a subset of the tex commands is allowed.

See w:Help:Displaying a formula for details.