!! 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 texvc !! 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 !! options texvc !! input \widehat{x} \widetilde{x} !! result

\widehat{x} \widetilde{x}

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

\euro 200 \geneuro \geneuronarrow \geneurowide \officialeuro

!! end !! test BUG 27754: Archaic Greek letters for math (may require texlive-lang-greek) !! options texvc !! 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{...} !! options texvc !! input \text{next years} \text{next year's} \text{`next' year} !! result

\text{next years} \text{next year's} \text{`next' year}

!! end !! test BUG 6722: Spacing fix for functions in math HTML output !! options texvc !! 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 !! options texvc !! 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 !! options texvc !! input \operatorname{sen} !! result

\operatorname{sen}

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

\dot \vec B

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

\tilde \mathcal{M}

!! end !! test BUG 31824: Empty math tag returns uniq !! options texvc !! input !! result !! end !! test BUG 31824: Empty math tag returns uniq !! options texvc !! input !! result !! end