html: ignore attrs on inline quotes

This commit is contained in:
Noah Hellman 2023-01-15 20:06:51 +01:00
parent 8024499069
commit 6e28b0e162

View file

@ -116,6 +116,10 @@ impl<'s, I: Iterator<Item = Event<'s>>, W: std::fmt::Write> Writer<I, W> {
Container::DoubleQuoted => self.out.write_str("&ldquo;")?,
}
if matches!(c, Container::SingleQuoted | Container::DoubleQuoted) {
continue; // TODO add span to allow attributes?
}
if attrs.iter().any(|(a, _)| a == "class")
|| matches!(
c,