| Andrew Stacey | |||
|
|
Tue, 9th Mar 2010 (HowDidIDoThat :: nLab) Converting the nForum to MathML A side benefit of the awesome SVG-Editor in instiki is the creation of a public itex server. This makes it possible to send some itex off to the server and get back some MathML. A bit like those public latex servers that convert latex equations to images, but better. So if a forum can use latex->png's to display mathematics, surely it can use itex->mathml ... The nForum runs on the Vanilla forum platform.
Vanilla gets bonus marks for already serving XHTML, so it's not hard to switch it to XHTML+MathML+SVG.
One change is needed to the main code: in the file The next question is how to generate the MathML. Given that the nForum supports the nLab, which runs a variant of markdown with itex, the obvious solution was to write a wrapper around markdown that essentially did the same. The result is the Markdown+Itex formatter. This also incorporates the wikilink plugin so it all happens in one place. Various existing plugins also needed modification to work correctly. For some, the modifications were minor: mainly replacing ampersands in URLs with entities. For others, the modifications were a little more serious. Here's a complete list of the extensions that the nForum uses, together with a summary of the modifications.
Resources
[Full link] |
||