Use a QWebEngineView if QtWebEngine is available. If QtWebEngine is not available replace figure tags with div's to allow the QTextEdit to render the rest of the html properly