Update document build formats to support text highlighting

This commit is contained in:
Veronica Berglyd Olsen
2024-02-25 16:34:24 +01:00
parent 69bf6a64aa
commit 0566fc38af
6 changed files with 36 additions and 9 deletions
+2
View File
@@ -768,6 +768,8 @@ class _PreviewWidget(QTextBrowser):
html = html.replace("\t", "!!tab!!")
html = html.replace("<del>", "<span style='text-decoration: line-through;'>")
html = html.replace("</del>", "</span>")
html = html.replace("<mark>", "<span style='background-color: #ffffa6;'>")
html = html.replace("</mark>", "</span>")
self.setHtml(html)
qApp.processEvents()
while self.find("!!tab!!"):