summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAna Gelez <ana+github@gelez.xyz>2024-03-25 14:32:02 +0100
committerLaurenz <laurmaedje@gmail.com>2024-05-17 14:27:58 +0200
commitc5dcd220c1d99e07b5736b6bbae4687aa82d3f55 (patch)
treeea2b8db5ac5f24f1d3c466aca3fdf6af54c10de8 /tests
parent784488c5225534ee7e3848df186d059cb6cbeed5 (diff)
Fix smart quotes in PDF outline (#3790)
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/bugs/3662-pdf-smartquotes.pngbin0 -> 11950 bytes
-rw-r--r--tests/typ/bugs/3662-pdf-smartquotes.typ12
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/ref/bugs/3662-pdf-smartquotes.png b/tests/ref/bugs/3662-pdf-smartquotes.png
new file mode 100644
index 00000000..c272a8ff
--- /dev/null
+++ b/tests/ref/bugs/3662-pdf-smartquotes.png
Binary files differ
diff --git a/tests/typ/bugs/3662-pdf-smartquotes.typ b/tests/typ/bugs/3662-pdf-smartquotes.typ
new file mode 100644
index 00000000..36dc8a15
--- /dev/null
+++ b/tests/typ/bugs/3662-pdf-smartquotes.typ
@@ -0,0 +1,12 @@
+// Smart quotes were not appearing in the PDF outline, because they didn't
+// implement `PlainText`
+// https://github.com/typst/typst/issues/3662
+
+---
+= It's "Unnormal Heading"
+= It’s “Normal Heading”
+
+#set smartquote(enabled: false)
+= It's "Unnormal Heading"
+= It's 'single quotes'
+= It’s “Normal Heading” \ No newline at end of file