Commit 965af10
feat(math): implement m:d delimiter converter (SD-2380) (#2710)
* feat(math): implement m:d delimiter converter (SD-2380)
* fix(math): address delimiter review and sync converters
* fix(math): address delimiter review feedback
* docs(math): clarify delimiter separator spec
* test(math): add behavior tests for m:d delimiter rendering
Add 5 behavior tests exercising the delimiter converter with a dedicated
test document covering all 21 ECMA-376 §22.1.2.24 compliance cases:
default parentheses, U+2502 separator, suppressed delimiters (chr without
m:val), custom Unicode delimiters (floor, ceiling, abs), and nesting.
Fix stale comment that still referred to delimiter as unimplemented.
* refactor(math): inline createExpressionGroup into single loop
Replace map + filter + forEach chain with a single for-loop that
builds expression groups directly, removing the single-use helper.
---------
Co-authored-by: Caio Pizzol <caio@harbourshare.com>1 parent 06aeef5 commit 965af10
6 files changed
Lines changed: 769 additions & 3 deletions
File tree
- packages/layout-engine/painters/dom/src/features/math
- converters
- tests/behavior/tests/importing
- fixtures
Lines changed: 63 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
0 commit comments