Have you tried adjusting the HTML filter within the admin console?
admin > Space > Settings > Filter > html filter
Let me know if that doesn't solve your problem.
Thanks for the help. That helps but now my HTML for a table gets turned into wiki markup when I try and edit the document. Any way around that?