!! 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 !! test BUG 6722: Spacing fix for functions in math HTML output !! input \sin x \sin(x) \sin{x} \sin x \, \sin(x) \, \sin{x} \, !!result

sin x sin(x) sin x

\sin x \, \sin(x) \, \sin{x} \,

!! end !! test BUG 18912: Add \sen function for Spanish sin to math !! input \sen x \sen(x) \sen{x} \sen x \, \sen(x) \, \sen{x} \, !! result

sen x sen(x) sen x

\sen x \, \sen(x) \, \sen{x} \,

!! end !! test BUG 18912: \operatorname{sen} x gets wrong spacing in math !! input \operatorname{sen} !! result

\operatorname{sen}

!! end !! test BUG 31442: Multiple math accents without braces fails to parse !! input \dot \vec B !! result

\dot \vec B

!! end !! test BUG 31442: Math accents with math font fail to parse if braces not used !! input \tilde \mathcal{M} !! result

\tilde \mathcal{M}

!! end