I try to use PyQt5.14 to show markdown content, but some content not showing and it looks like different as usual?
The Code:
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from urllib import request
class Demo(QTextEdit):
def __init__(self):
super().__init__()
md = self.get_markdown()
self.setMarkdown(md)
def get_markdown(self):
url = 'https://raw.githubusercontent.com/PyQt5/PyQt/master/README.md'
response = request.urlopen(url)
return response.read().decode()
app = QApplication([])
demo = Demo()
demo.show()
app.exec()
Origin::
After Render: