RTE: cleanup imported document code

Yeah. That’s a mess. You can probably spend a little time with nokogiri and get it into markdown.