I hacked a little C++ utility (hereby under GPL, source files attached)
that converts HTML to wiki markup. A few points:
* It should compile on any Windows/*nix system (you might have to turn
off warnings, though)
* Pipe the HMTL in, and get wiki markup out
* Shouldn't touch existing wiki markup
* Keeps HTML if there's no wiki markup defined for it
* Other wiki markup (for other wikis) can be added with only a few lines
of source
* Internally uses a new string class with 32-bit-chars (potential for
unicode there, also it should work with unicode "as is")
Downsides:
* Doesn't check HTML/wiki markup validity (broken HTML will become
broken wiki markup, which might be less bad though)
* Ignores <nowiki> (though I don't think that matters)
Idea: Have a checkbox on the edit page (or maybe on preferences instead)
that says:
"Convert HTML to wiki markup on preview"
Conversion *should* only take place prior to preview, so a human can
make certain nothing's broken.
Magnus