Skip to content

lib.typ still uses "pattern" instead of "tiling" #135

Description

@rctsang

Typst 0.15.0

Example:

#import "codly-1.3.1/codly.typ": *  /* also tried with "@preview/codly:1.3.0" */
#import "@preview/codly-languages:0.1.10"

#show: codly-init.with()
#codly(lang-fill: none)

```python
def test(foo):
    print(foo)
```

Error:

% typst compile tmp.typ
error: unknown variable: pattern
     ┌─ codly-1.3.1/src/lib.typ:1393:94

1393 │       } else if type(lang-fill) == color or type(lang-fill) == gradient or type(lang-fill) == pattern {
     │                                                                                               ^^^^^^^

Will open a PR soon, fix should just be a search and replace

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions