From 8fe8b2a23940f76077aa36eda305febd22e7cadc Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 26 Nov 2024 20:51:22 +0000 Subject: Ignore leading and trailing ignorant fragments in `math.lr` (#5473) --- tests/ref/math-lr-ignore-ignorant.png | Bin 0 -> 970 bytes tests/suite/math/delimited.typ | 17 +++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 tests/ref/math-lr-ignore-ignorant.png (limited to 'tests') diff --git a/tests/ref/math-lr-ignore-ignorant.png b/tests/ref/math-lr-ignore-ignorant.png new file mode 100644 index 00000000..b82a827f Binary files /dev/null and b/tests/ref/math-lr-ignore-ignorant.png differ 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$$⌝$ -- cgit v1.2.3