From 0f97d7656aeb0eef3f53a05ab34d142ee24afacc Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 4 Jul 2024 01:47:54 +0200 Subject: [PATCH] fix(mdhtml): dont strip class=u-url mention --- utils/mdhtml/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/mdhtml/lib.rs b/utils/mdhtml/lib.rs index 9f49b79..1439ebd 100644 --- a/utils/mdhtml/lib.rs +++ b/utils/mdhtml/lib.rs @@ -56,6 +56,7 @@ impl TokenSink for Sink { match attr.name.local.as_ref() { "href" => self.buffer.push_str(&format!(" href=\"{}\"", attr.value.as_ref())), "title" => self.buffer.push_str(&format!(" title=\"{}\"", attr.value.as_ref())), + "class" => if attr.value.as_ref() == "u-url mention" { self.buffer.push_str(" class=\"u-url mention\"") }, _ => {}, } }