How to do conditional show rule on math.accent to replace hat(i) with hat(dotless.i)?

I’ve tried to do a where selector on math.accent to select only hat(i), but I can’t seem to get it to work. Here is my current show rule that doesn’t end up working.

#show math.accent.where(base: [i], accent: math.hat): math.accent(math.dotless.i, math.hat)

$ hat(i) == accent(i, hat) != hat(dotless.i) $

So just found out after compiling to pdf with Typst 0.13 that this is a bug in either the TypstPreview plugin for Neovim or in Typst 0.12, but it works in Typst 0.13.

Hello @shadowrim and welcome!
I’ve changed your topic to Questions, don’t hesitate to also read How to post in the Questions category.

I can confirm this works on typst 0.13.0, but not on 0.12.0 :smiley: