fix(mdhtml): dont strip class=u-url mention

This commit is contained in:
əlemi 2024-07-04 01:47:54 +02:00
parent 905564ce15
commit 0f97d7656a
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -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\"") },
_ => {},
}
}