diff options
| author | Max <me@mkor.je> | 2024-11-26 20:51:22 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-26 20:51:22 +0000 |
| commit | 8fe8b2a23940f76077aa36eda305febd22e7cadc (patch) | |
| tree | 5fb56089cc90e72c89260d02054df29d588e2993 /tests | |
| parent | 22748aaf2e1938f955dc1f98520d6c57a20af097 (diff) | |
Ignore leading and trailing ignorant fragments in `math.lr` (#5473)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/math-lr-ignore-ignorant.png | bin | 0 -> 970 bytes | |||
| -rw-r--r-- | tests/suite/math/delimited.typ | 17 |
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/ref/math-lr-ignore-ignorant.png b/tests/ref/math-lr-ignore-ignorant.png Binary files differnew file mode 100644 index 00000000..b82a827f --- /dev/null +++ b/tests/ref/math-lr-ignore-ignorant.png diff --git a/tests/suite/math/delimited.typ b/tests/suite/math/delimited.typ index d6e1d864..9e11ec8b 100644 --- a/tests/suite/math/delimited.typ +++ b/tests/suite/math/delimited.typ @@ -98,6 +98,23 @@ $lr(lr(|, size: #4em), size: #50%)$ $lr(body1, size: #50%)$ $lr(body2, size: #50%)$ +--- math-lr-ignore-ignorant --- +// Test ignoring leading and trailing ignorant fragments. +#box($ (1 / 2) $) +#box({ + show "(": it => context it + $ (1 / 2) $ +}) +#box({ + show ")": it => context it + $ (1 / 2) $ +}) +#box({ + show "(": it => context it + show ")": it => context it + $ (1 / 2) $ +}) + --- issue-4188-lr-corner-brackets --- // Test positioning of U+231C to U+231F $⌜a⌟⌞b⌝$ = $⌜$$a$$⌟$$⌞$$b$$⌝$ |
