Add an unnumbered heading for the abstract environment

This commit is contained in:
gloamxun committed 2026-10-19 14:10:59 +08:00
1 parent b4ee4c1330
commit c7b7660049
2 files changed
+34

No files matched your search

@@ -1842,6 +1842,15 @@ impl Parser {
self.table_active = false;
self.current_table_block = None;
}
(true, "abstract") => {
self.flush_paragraph();
let mut heading = Run::plain("Abstract".to_string());
heading.bold = true;
self.push_block(Block::Centered {
runs: vec![heading],
});
}
(false, "abstract") => self.flush_paragraph(),
(true, "center") => {
self.flush_paragraph();
if self.centered.is_none() {