Last modified: 2014-09-07 23:51:26 UTC
Parsoid is expecting that when it sends a bit of wikitext over for parsing, such as <math>e^2</math>, that this will be rendered with the wikitext parser. Without sending the contentmodel=wikitext parameter mediawiki will choose the content model based on the title, which in the case of Flow topics is not wikitext. This bug surfaced due to <math> tags failing in Flow. As suggested i think the easiest fix is just pass an explicit contentmodel=wikitext with the api requests.
Change 158294 had a related patch set uploaded by EBernhardson: Bug: 70370 Explicitly specify content model in PHPParseRequest https://gerrit.wikimedia.org/r/158294
Change 158294 merged by jenkins-bot: Bug: 70370 Explicitly specify content model in PHPParseRequest https://gerrit.wikimedia.org/r/158294
Patch merged, and I've confirmed <math> now works on beta.wmflabs. I think this can be closed as Resolved? (test topic at http://en.wikipedia.beta.wmflabs.org/wiki/Topic:S1wutiokkzyvzweq