From 3d40f762ce511b06a6eb0de61b8bf1878ae1df0e Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 22 May 2020 02:11:21 -0400 Subject: [PATCH] Don't strip tags --- src/backend/html_markdown.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/html_markdown.py b/src/backend/html_markdown.py index 2494a744..76f40cfe 100644 --- a/src/backend/html_markdown.py +++ b/src/backend/html_markdown.py @@ -113,6 +113,7 @@ class HTMLProcessor: "h1", "h2", "h3", "h4", "h5", "h6","blockquote", "p", "ul", "ol", "li", "hr", "br", "table", "thead", "tbody", "tr", "th", "td", "pre", + "mx-reply", } opaque_id = r"[a-zA-Z\d._-]+?" @@ -289,7 +290,6 @@ class HTMLProcessor: """Return an html_sanitizer configuration.""" # https://matrix.org/docs/spec/client_server/latest#m-room-message-msgtypes - # TODO: mx-reply and the new hidden thing inline_tags = self.inline_tags all_tags = inline_tags | self.block_tags