Support multicolumn spans and partial table rules

This commit is contained in:
gloamxun committed 2026-10-19 17:53:26 +08:00
1 parent ca5cb0b8af
commit d4e52dc225
13 files changed
+698 -187

No files matched your search

+11
View File
@@ -2,6 +2,7 @@ use std::{ops::Range, sync::Arc};
use crate::{
MathClass, MathStyleCommand, TeXGlue,
document::ColumnAlignment,
math_code::UnicodeMathCode,
math_expr::{
MathAccent, MathDelimiterGlyph, MathDelimiterSettings, MathExpr, MathFontFamilies,
@@ -219,7 +220,17 @@ pub enum FrontendEventKind {
RowBreak,
ListItem,
TableCell,
TableCellSpan {
colspan: usize,
alignment: Option<ColumnAlignment>,
},
TableRule,
TableRuleRange {
start_column: usize,
end_column: usize,
trim_left: bool,
trim_right: bool,
},
HeadingStart {
level: u8,
numbered: bool,