Yeah the HTML preview is using QtWebEngine, but not the text editor part.
I suppose there is a way to deactivate Javascript execution in QtWebEngine but I don't know enough about it. But given that Markdown allows inline HTML and JavaScript, I don't see how you could have an accurate WYSIWYG representation if you don't have a Javascript engine available somewhere.