Just to let you know (and especially Marius) that I've discovered that
wikimodel has a XHTML parser already which seems to be doing quite a
lot of things.
I'll be trying it next week and integrate it into the new rendering
module so that the new WYSIWYG module can use it.
Thanks
-Vincent