In reply to mark k..

And whether it is a good idea or not in general, the preview is most likely a bad idea from security POV. Running just any random html code which might be written by anyone, you better have an extremely good sanitation. this should be a plugin to gutenberg and for sure not released in version 1.0 of it.