summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-05-22 16:44:48 +0200
committerLaurenz <laurmaedje@gmail.com>2023-05-22 16:45:23 +0200
commit183997d5fe76cf0b41fd26bfa29d166071d239eb (patch)
tree16512f3b86312490ef48a93ea358336b34cb035b /tests
parenta3227f4ef3b759faa506109c0235df5ffd2a4b7d (diff)
Don't hide introspection metadata
Fixes #622
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/bugs/hide-meta.pngbin0 -> 14128 bytes
-rw-r--r--tests/typ/bugs/hide-meta.typ24
2 files changed, 24 insertions, 0 deletions
diff --git a/tests/ref/bugs/hide-meta.png b/tests/ref/bugs/hide-meta.png
new file mode 100644
index 00000000..860617d7
--- /dev/null
+++ b/tests/ref/bugs/hide-meta.png
Binary files differ
diff --git a/tests/typ/bugs/hide-meta.typ b/tests/typ/bugs/hide-meta.typ
new file mode 100644
index 00000000..6dce81ad
--- /dev/null
+++ b/tests/typ/bugs/hide-meta.typ
@@ -0,0 +1,24 @@
+// Test that metadata of hidden stuff stays available.
+
+---
+#set cite(style: "chicago-notes")
+
+A pirate. @arrgh \
+#set text(2pt)
+#hide[
+ A @arrgh pirate.
+ #bibliography("/works.bib")
+]
+
+---
+#set text(8pt)
+#outline()
+#set text(2pt)
+#hide(block(grid(
+ [= A],
+ [= B],
+ block(grid(
+ [= C],
+ [= D],
+ ))
+)))