Can we use a Javascript based parser to convert the wiki markup language to some intermediate object, which can be easily converted to both languages (wiki markup language and HTML)? I think JQuery object is a good idea. We can extend JQuery to include such language conversion methods.