Brion Vibber wrote:
S. Woodside wrote:
It seems like this might be a good place to insert an intermediate parsing format (something between the article{wikitext, ...} and the final HTML.
There's a couple attempts at this floating around, not sure what the state is.
Perfect opportunity for yet another shameless plug of mine :-)
http://magnusmanske.de/wiki2xml/w2x.php
converts wikitext into XML. It can work directly off wikitext, or using an existing MediaWiki installation as source, in which case it can automatically resolve templates.
It probably needs some testing for bugs, but generally seems to work quite well.
Code is in CVS, module "wiki2xml", directory "php".
Magnus