This is not a bug but a feature request.
Currently we are assuming that the embedded content will be HTML, so the cook_method is set to raw_html as per this code.
The better solution here is to add a new site setting to control cook_method for embedded topics.