Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
ASCII formulas extension
I'm finishing an extension that grabs any "natural language" (almost) formula between [math] tags and shows it as a MathML formula. It's done via the wonderful ASCII2MathML.
Teaser pic here --> http://octavoarte.cl/foroconcurso/vanilla_mathml.jpg
The thing is to display MathML in a webpage you need to:
a) have a doctype that includes the MathML namespace: this can be easily included in your themefile, and I could provide the default Vanilla theme + MathML.
b) have an application/xhtml+xml mimetype, this is in appg/headers.php, file which is not to be edited by extensions. Plus it breaks IE (as most cool things do).
So, I'm looking for a solution to b) before I upload the extension, since without these changes your browser won't display any formulas and validators will go nuts.
Maybe there's another mimetype that displays MathML and doesn't break IE, I'll look for that next. Any ideas on changing mimetype for Vanilla?
0
This discussion has been closed.
Comments
If this nifty way involves checking browser id strings, I highly recommend avoiding it.
"On the other side, Opera is failing to parse XML for a silly URL parameter-separating ampersand, as it believes it to be an entity, and fails to display."
That kind of thing happens a lot in XHTML-land. It can be solved by filtering content for unencoded ampersands.
"Sorry, I meant '&', not '&'"
gotcha though