summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYip Coekjan <69834864+Coekjan@users.noreply.github.com>2024-09-08 16:29:58 +0800
committerGitHub <noreply@github.com>2024-09-08 08:29:58 +0000
commit40fcd97d584fc1dfa6446bc4922d3b1e440e0afd (patch)
tree29d0439aad5fc5a0301f058c7153cfc4b74a30b9 /tests
parent4cddb485847e01f62cc1fe65d37028a87df52daa (diff)
Make `QuoteElem` locatable (#4909)
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/query-quote.pngbin0 -> 1368 bytes
-rw-r--r--tests/suite/introspection/query.typ16
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/ref/query-quote.png b/tests/ref/query-quote.png
new file mode 100644
index 00000000..e2136592
--- /dev/null
+++ b/tests/ref/query-quote.png
Binary files differ
diff --git a/tests/suite/introspection/query.typ b/tests/suite/introspection/query.typ
index 76ecc913..3d71529e 100644
--- a/tests/suite/introspection/query.typ
+++ b/tests/suite/introspection/query.typ
@@ -281,3 +281,19 @@
// New show rules apply to this, but its location and the materialized fields
// from the original are retained.
#context query(heading).join()
+
+--- query-quote ---
+// Test quoting a query.
+
+#quote[ABC] & #quote[EFG]
+
+#context query(selector(quote).before(here())).first()
+
+#quote(block: true)[HIJ]
+#quote(block: true)[KLM]
+
+#context query(selector(quote).before(here())).last()
+
+#quote[NOP] <nop>
+
+#context query(<nop>).first()