summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2024-01-29 12:25:09 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2024-01-29 12:25:09 -0800
commitc1f87fdb37c904cb473d9747fd4141d4709c07d6 (patch)
treedcfe0064af908c2ddbb95bcd695d3f6a4779d478 /test
parent97eb9273398f141872d08e12c492167ad67628b6 (diff)
Typst writer: handle labels and citaiton ids with spaces...
and other special characters. In these cases, we produce an explicit `label()` rather than using `<>` or `@`. Cloess #9387.
Diffstat (limited to 'test')
-rw-r--r--test/command/9387.md13
1 files changed, 11 insertions, 2 deletions
diff --git a/test/command/9387.md b/test/command/9387.md
index fa600c0ad..d63171a63 100644
--- a/test/command/9387.md
+++ b/test/command/9387.md
@@ -8,7 +8,16 @@
#block[
test
-] <my-label>
-See #link(<my-label>)[my label];.
+] #label("my label")
+See #link(label("my label"))[my label];.
+
+```
+
+```
+% pandoc -f latex -t typst
+\cite{10.1117/12.695309}
+\cite{foo}
+^D
+#cite(label("10.1117/12.695309")) @foo
```