@@ -77,7 +77,9 @@ fn parse<'a>(
7777 Event::End(tag) => {
7878 tags.pop();
7979 match tag {
80− Tag::Heading(_) | Tag::Paragraph | Tag::CodeBlock(CodeBlockKind::Fenced(_)) => {
80+ Tag::Heading(_, _, _)
81+ | Tag::Paragraph
82+ | Tag::CodeBlock(CodeBlockKind::Fenced(_)) => {
8183 // whenever code block or paragraph closes, new line
8284 let spans = std::mem::take(&mut spans);
8385 if !spans.is_empty() {
@@ -158,7 +160,7 @@ fn parse<'a>(
158160 lines.push(Spans::from(span));
159161 }
160162 }
161− } else if let Some(Tag::Heading(_)) = tags.last() {
163+ } else if let Some(Tag::Heading(_, _, _)) = tags.last() {
162164 let mut span = to_span(text);
163165 span.style = heading_style;
164166 spans.push(span);