html: ignore attrs on inline quotes
This commit is contained in:
parent
8024499069
commit
6e28b0e162
1 changed files with 4 additions and 0 deletions
|
@ -116,6 +116,10 @@ impl<'s, I: Iterator<Item = Event<'s>>, W: std::fmt::Write> Writer<I, W> {
|
|||
Container::DoubleQuoted => self.out.write_str("“")?,
|
||||
}
|
||||
|
||||
if matches!(c, Container::SingleQuoted | Container::DoubleQuoted) {
|
||||
continue; // TODO add span to allow attributes?
|
||||
}
|
||||
|
||||
if attrs.iter().any(|(a, _)| a == "class")
|
||||
|| matches!(
|
||||
c,
|
||||
|
|
Loading…
Reference in a new issue