attempt to fix rich text pasting from #5.

whitespace is still broken, but it mostly works now.
not really using the new plugin, but leaving it here in case
I can make use of it in the future.