summaryrefslogtreecommitdiff
path: root/tests/suite
diff options
context:
space:
mode:
authorMax <me@mkor.je>2024-11-26 20:51:22 +0000
committerGitHub <noreply@github.com>2024-11-26 20:51:22 +0000
commit8fe8b2a23940f76077aa36eda305febd22e7cadc (patch)
tree5fb56089cc90e72c89260d02054df29d588e2993 /tests/suite
parent22748aaf2e1938f955dc1f98520d6c57a20af097 (diff)
Ignore leading and trailing ignorant fragments in `math.lr` (#5473)
Diffstat (limited to 'tests/suite')
-rw-r--r--tests/suite/math/delimited.typ17
1 files changed, 17 insertions, 0 deletions
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$$⌝$