summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-04-19 10:38:03 +0200
committerLaurenz <laurmaedje@gmail.com>2023-04-19 11:06:52 +0200
commitf8966f9e867dc72080355342aab64734f70ac4f7 (patch)
tree9713d316b31e913b9edd5eca73410f81457aaf76 /tests/typ
parentd10b53df0b487036b0d639b6033f4568648cfff1 (diff)
Fix realize in math
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/bugs/math-realize.typ15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/typ/bugs/math-realize.typ b/tests/typ/bugs/math-realize.typ
new file mode 100644
index 00000000..c2772ab5
--- /dev/null
+++ b/tests/typ/bugs/math-realize.typ
@@ -0,0 +1,15 @@
+// Test that content in math can be realized without breaking
+// nested equations.
+
+---
+#let my = $pi$
+#let f1 = box(baseline: 10pt, [f])
+#let f2 = style(sty => f1)
+#show math.vec: [nope]
+
+$ pi a $
+$ my a $
+$ 1 + sqrt(x/2) + sqrt(#hide($x/2$)) $
+$ a x #link("url", $+ b$) $
+$ f f1 f2 $
+$ vec(1,2) * 2 $