From 702271dacb205d43f91736386e5575590f2c3af2 Mon Sep 17 00:00:00 2001 From: Yip Coekjan <69834864+Coekjan@users.noreply.github.com> Date: Thu, 30 May 2024 15:57:12 +0800 Subject: Allow setting `raw.theme` to `none` to disable syntax highlighting (#4256) --- tests/ref/raw-theme-set-to-none.png | Bin 0 -> 449 bytes tests/suite/text/raw.typ | 6 ++++++ 2 files changed, 6 insertions(+) create mode 100644 tests/ref/raw-theme-set-to-none.png (limited to 'tests') diff --git a/tests/ref/raw-theme-set-to-none.png b/tests/ref/raw-theme-set-to-none.png new file mode 100644 index 00000000..1451e0c9 Binary files /dev/null and b/tests/ref/raw-theme-set-to-none.png differ diff --git a/tests/suite/text/raw.typ b/tests/suite/text/raw.typ index 8ced276c..1807e71a 100644 --- a/tests/suite/text/raw.typ +++ b/tests/suite/text/raw.typ @@ -648,6 +648,12 @@ fn main() { #let hi = "Hello World" ``` +--- raw-theme-set-to-none --- +#set raw(theme: none) +```typ +#let foo = "bar" +``` + --- raw-unclosed --- // Test unterminated raw text. // -- cgit v1.2.3