Open source markdown editor for windows6/22/2023 You can also use QNetworkAccessManager to download remote. So an alternative is to use QWebEngineView + js libraries like markdown.js and marked.js as the official example shows. QTextEdit since Qt 5.14 can render markdown but as the OP points out it has a limitation: it cannot render remote images. # now somehow replace the placeholder in the loaded html page with file contents? What I have right now is the following: from PyQt5.QtWebChannel import QWebChannelįrom PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEnginePage I tried to translate the needed parts into Python but I don't quite get how what works. It is however a complete markdown texteditor and additionally written in c++. In a comment someone references this example. Here I read that I should use a QWebEngineView instead of a QTextEdit because the QTextEdit can't render external images. How can I render a markdown file in my PyQt5 application?
0 Comments
Leave a Reply. |