From b0f88230aa0b6e59563928865b147a2dd1eb0084 Mon Sep 17 00:00:00 2001 From: Noah Hellman Date: Thu, 11 May 2023 21:34:28 +0200 Subject: [PATCH] parse: do not attach block attributes to outer blocks e.g. - {.inner} this paragraph would get the inner class previously --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 889b6c3..fa21a28 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1004,6 +1004,7 @@ impl<'s> Parser<'s> { if enter { Event::Start(cont, self.block_attributes.take()) } else { + self.block_attributes = Attributes::new(); Event::End(cont) } }