Skip to content

Set rule with function inside show-it is not applied #6218

@shelacek

Description

@shelacek

Description

I need to set the table stroke using a function within the show rule with an anonymous function, but it doesn't seem to be working. The show-set rules, which don't take the function, and the set rules with a static stroke are working fine:

// OK
#show table: set table(stroke: 1pt + red)

// OK
#show table: set table(stroke: (x, y) => 1pt + red)

// OK
#show table: it => {
  set table(stroke: 1pt + red)
  it
}

// No effect
#show table: it => {
  set table(stroke: (x, y) => 1pt + red)
  it
}

Reproduction URL

https://typst.app/project/rGeZxbARvWHZ7USiNCY8Sq

Operating system

Linux

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions