Last modified: 2011-05-19 15:26:51 UTC
See URL for examples.
Expected result: Any input to <math> gets italicized and put in a serif font, due to wrapping in <span class="texhtml">.
Actual result: Any input that uses no LaTeX commands and only uses ASCII characters is outputted with whitespace stripped but otherwise as-is, not wrapped in any HTML tag.
This has nothing to do with CSS, it's a bug in texvc. Removing bug 12788 dependency.
All the examples on the given page are now italic, and wrapped with class="texhtml".
Okay, turns out it was due to the preference "MathML if possible (experimental)". It seems it works as expected in all other cases. Maybe this setting is buggy and should be removed? What is it actually expected to do, for text/html output?
Actually, in general, it seems like we could cut down on the options here a lot. "Leave it as TeX (for text browsers)" seems redundant to "Always render PNG", because of our use of alt text. "Recommended for modern browsers" needs to be either 1) removed, 2) renamed, or 3) set as the default, because presumably by the standards of whenever it was added, all browsers are modern by now . . . or if not, explain what "modern" means (not IE?). That's a separate bug, though.
I have tested this on a more recent mediawiki install then is being used on wikimedia wiki's and it no longer seems to be an issue. Though I am not sure in which revision it was fixed. Also I know that several depend on "Leave as TeX..." so that they can use mathjax as an alternate render, see [[w:Help_talk:Displaying_a_formula#Formulas_as_SVG.3F]] for more info. But the comments about Modern Browsers seem very appropriate.