summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/text/raw-theme.pngbin0 -> 5380 bytes
-rw-r--r--tests/typ/text/raw-theme.typ24
2 files changed, 24 insertions, 0 deletions
diff --git a/tests/ref/text/raw-theme.png b/tests/ref/text/raw-theme.png
new file mode 100644
index 00000000..0ce17760
--- /dev/null
+++ b/tests/ref/text/raw-theme.png
Binary files differ
diff --git a/tests/typ/text/raw-theme.typ b/tests/typ/text/raw-theme.typ
new file mode 100644
index 00000000..71b59688
--- /dev/null
+++ b/tests/typ/text/raw-theme.typ
@@ -0,0 +1,24 @@
+// Test code highlighting with custom theme.
+
+---
+#set page(width: 180pt)
+#set text(6pt)
+#set raw(theme: "/files/halcyon.tmTheme")
+#show raw: it => {
+ set text(fill: rgb("a2aabc"))
+ rect(
+ width: 100%,
+ inset: (x: 4pt, y: 5pt),
+ radius: 4pt,
+ fill: rgb("1d2433"),
+ place(right, text(luma(240), it.lang)) + it,
+ )
+}
+
+```typ
+= Chapter 1
+#lorem(100)
+
+#let hi = "Hello World"
+#show heading: emph
+```