Remove html-sanitizer custom attrs workaround

Fix merged upstream (1.7.2).
This commit is contained in:
miruka
2019-04-28 20:39:45 -04:00
parent 67c3ef5906
commit 216ae312c5
2 changed files with 0 additions and 5 deletions

View File

@@ -28,10 +28,6 @@ class HtmlFilter(QObject):
sanitizer.normalize_overall_whitespace = lambda html: html
sanitizer.normalize_whitespace_in_text_or_tail = lambda el: el
# Prevent custom attributes from being removed
sanitizer.lxml.html.clean.Cleaner.safe_attrs |= \
self.sanitizer_settings["attributes"]["font"]
# hard_wrap: convert all \n to <br> without required two spaces
self._markdown_to_html = mistune.Markdown(hard_wrap=True)