Myriad-Dreamin/tinymist

`Cases` function broken

e-zz opened this issue · 1 comments

e-zz commented

Is there an existing issue for this?

  • I have searched the existing issues

Platform

x64 Windows (win32-x64, Most Common)

Editor

VS Cod(e,ium)

Editor Version

Version: 1.99.3 (user setup)
Commit: 17baf841131aa23349f217ca7c570c76ee87b957
Date: 2025-04-15T23:18:46.076Z
Electron: 34.3.2
ElectronBuildId: 11161073
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.19045

Describe the bug

Hi! Thanks for the plugin!
With the pre-release version Tinymist (that enables PDF embedding), I found the cases function is broken

$
  cases(
    gap: #4%,
    N_i
    ,
    P_i^dagger 
  )
$

which renders as

Image

Server Logs

Tinymist Typst.log

Browser Logs

Paste your logs here

Additional context

No response

This should be fixed by ParaN3xus/typst.ts#1, but it didn't fix it, and causes #2020.