From 1467540a58d0562dcfd638d6e24419b42c58ab2c Mon Sep 17 00:00:00 2001 From: rctsang Date: Fri, 24 Jul 2026 20:30:14 -0400 Subject: [PATCH] replace 'pattern' with 'tiling' from typst v0.13 --- src/lib.typ | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib.typ b/src/lib.typ index 30f072e..42b0cb5 100644 --- a/src/lib.typ +++ b/src/lib.typ @@ -1082,8 +1082,8 @@ let col = l.at(1) assert( - type(col) == color or type(col) == gradient or type(col) == pattern, - message: "codly: the type of a `highlighted-lines` color must be either a color, a gradient, or a pattern, found: " + str(type(col)) + type(col) == color or type(col) == gradient or type(col) == tiling, + message: "codly: the type of a `highlighted-lines` color must be either a color, a gradient, or a tiling, found: " + str(type(col)) ) (ln, col) @@ -1324,7 +1324,7 @@ let fill = if type(lang-fill) == function { (lang-fill)((name: name, icon: icon, color: color)) - } else if type(lang-fill) == color or type(lang-fill) == gradient or type(lang-fill) == pattern { + } else if type(lang-fill) == color or type(lang-fill) == gradient or type(lang-fill) == tiling { lang-fill } else { color @@ -1390,7 +1390,7 @@ let fill = if type(lang-fill) == function { (lang-fill)((name: alias, icon: [], color: default-color)) - } else if type(lang-fill) == color or type(lang-fill) == gradient or type(lang-fill) == pattern { + } else if type(lang-fill) == color or type(lang-fill) == gradient or type(lang-fill) == tiling { lang-fill } else { default-color