0xpapercut / obsidian-wypst

High quality rendering of Typst in Obsidian, powered by wypst.
MIT License
22 stars 2 forks source link

More than one non-numeric character in a vector component causes RuntimeError: unreachable #14

Open MATOO-Dev opened 1 month ago

MATOO-Dev commented 1 month ago

Obsidian version: v1.5.12 Obsidian-wypst version: 0.0.3

Vectors that contain more than one non-numeric character in any component cause a "RuntimeError: unreachable"

Vectors that contain purely digits are fine, e.g. vec(111,222) Vectors that contain single non-numeric characters per component also work fine, e.g. vec(n,k)

The problem arises when there are multiple such characters in a component (or a digit + non-numeric). Examples:

All result in "Runtime Error: Unreachable"

However, something like

does not cause the error