summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYip Coekjan <69834864+Coekjan@users.noreply.github.com>2024-05-25 07:14:56 +0800
committerGitHub <noreply@github.com>2024-05-24 23:14:56 +0000
commit374b82f8cad0d36d36c549a0295b8d14b093c3f9 (patch)
tree247ebf196c0883936266e246a2a4fa932c9884ce /tests
parentea4c64a7997556871934e20be7415cba8ec275a5 (diff)
Set default value of `raw.theme` to `auto`, and allow setting `raw.theme` to `auto` (#4186)
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/raw-theme-set-to-auto.pngbin0 -> 3221 bytes
-rw-r--r--tests/suite/text/raw.typ15
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/ref/raw-theme-set-to-auto.png b/tests/ref/raw-theme-set-to-auto.png
new file mode 100644
index 00000000..3d2c8857
--- /dev/null
+++ b/tests/ref/raw-theme-set-to-auto.png
Binary files differ
diff --git a/tests/suite/text/raw.typ b/tests/suite/text/raw.typ
index 6a3ea6bd..8ced276c 100644
--- a/tests/suite/text/raw.typ
+++ b/tests/suite/text/raw.typ
@@ -633,6 +633,21 @@ fn main() {
`code`
```
+--- raw-theme-set-to-auto ---
+```typ
+#let hi = "Hello World"
+```
+
+#set raw(theme: "/assets/themes/halcyon.tmTheme")
+```typ
+#let hi = "Hello World"
+```
+
+#set raw(theme: auto)
+```typ
+#let hi = "Hello World"
+```
+
--- raw-unclosed ---
// Test unterminated raw text.
//