!! 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 !! test BUG 26380: Add \widetilde support to match \widehat !! input \widehat{x} \widetilde{x} !! result

\widehat{x} \widetilde{x}

!! end !! test BUG 27324: Euro symbol for math !! input \euro 200 \geneuro \geneuronarrow \geneurowide \officialeuro !! result

€200 \geneuro \geneuronarrow \geneurowide \officialeuro

!! end !! test BUG 27754: Archaic Greek letters for math (may require texlive-lang-greek) !! input \digamma \Coppa\coppa\varcoppa \Digamma \Koppa\koppa \Sampi\sampi \Stigma\stigma\varstigma !! result

\digamma \Coppa\coppa\varcoppa \Digamma \Koppa\koppa \Sampi\sampi \Stigma\stigma\varstigma

!! end !! test BUG 19547: Apostrophe / single quotes in math \text{...} !! input \text{next years} \text{next year's} \text{`next' year} !! result

next years next year's `next' year

!! end