It would be nice to follow Andi's guidelines:
http://www.freelists.org/archives/dokuwiki/05-2006/msg00463.html
An idea, maybe we can parse the resulting html and convert it to dokuwiki sintax. Also, we should be able to support plugins special tags, like ~~COMMENTS~~ or something like that.