parse: do not attach block attributes to outer blocks

e.g.

    - {.inner}

    this paragraph would get the inner class previously
This commit is contained in:
Noah Hellman 2023-05-11 21:34:28 +02:00
parent c377aa9998
commit b0f88230aa

View file

@ -1004,6 +1004,7 @@ impl<'s> Parser<'s> {
if enter { if enter {
Event::Start(cont, self.block_attributes.take()) Event::Start(cont, self.block_attributes.take())
} else { } else {
self.block_attributes = Attributes::new();
Event::End(cont) Event::End(cont)
} }
} }