+ ///
+ ///
+ /// ## Heading
+ ///
+ /// text
+ ///
+ ///
+ ///
+ /// ```
+ ///
+ /// This ensures that Pandoc processes the structure properly and the resulting EPUB is valid.
fn preprocess_contiguous_html(
&mut self,
mut html: CowStr<'book>,
@@ -1088,6 +1144,7 @@ impl<'book, 'preprocessor> PreprocessChapter<'book, 'preprocessor> {
};
}
}
+
let already_open_tags = self.open_html_tags.len();
let mut still_open_tags = self.open_html_tags.len();
for node in html5gum::Tokenizer::new(html.as_ref()).infallible() {