fredrik danerklint wrote:
Hi everybody!
I would like some help with a extension module to php. Since I'm not a c programing guy, I have basicly given up. However, I have a little hope that someone here on this mailling list can help me...!
You can get the (bad - you don't have to tell me that!) code at http://www.fredan.org/pecl_wiki2html.tar.gz
What the module do is to translate wiki syntax to html syntax. Sounds simple, eh? Well not for me! ;-)
Not for us, either. There's no (easy) way to convert mediawiki's parser to C. It's too messy. The only way to do something similar would be doing by parsing a subset of wikitext. You may be interested in the discussions at wikitext-l to create a grammar for wikitext. It has also been discussed several times on this list.