!! test pre-save transform: comment containing math !! options pst !! input !!result !!end #!! test #BUG 1887: A with a thumbnail- we don't render math in the parsertests by default, #so math is not stripped and turns up as escaped <math> tags. #!! input #[[Image:foobar.jpg|thumb|2+2]] #!! result #
<math>2+2</math>
# #!! end !! test BUG 1887, part 2: A with a thumbnail- math enabled !! options math !! input [[Image:foobar.jpg|thumb|2+2]] !! result
2 + 2
!! end #!! test #Math section safety when disabled #!! input # #!! result #

<math><script>alert(document.cookies);</script></math> #

#!! end