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:
parent
c377aa9998
commit
b0f88230aa
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue