Support xrightarrow and xleftarrow

The amsmath extensible arrows were unknown, so their labels fell back to plain
text. The math parser now reads \xrightarrow/\xleftarrow, an optional [below]
label, and the above label, and builds nested Stack atoms around the arrow
symbol: above stacks upward, an optional below label stacks downward.

The math test compares the bare arrow with the labeled form (width/height grow)
and with the two-label form (total height plus depth grows).
This commit is contained in:
gloamxun committed 2026-10-27 03:18:20 +08:00
1 parent 8307fc8918
commit 4068366190
4 files changed
+54 -6

No files matched your search

+2 -2
View File
@@ -14,11 +14,11 @@ cargo fmt --all -- --check
cargo test --workspace --offline
```
The workspace currently passes **1043 tests**:
The workspace currently passes **1044 tests**:
| Suite | Tests |
| --- | --- |
| route-D unit (engine) | 438 |
| route-D unit (engine) | 439 |
| engine binary unit | 414 |
| server integration | 63 |
| v1 integration | 71 |