PgBiel / typst-tablex

More powerful and customizable tables in Typst
MIT License
370 stars 12 forks source link

Full compatibility with the new type system #69

Closed PgBiel closed 10 months ago

PgBiel commented 11 months ago

Since Typst v0.8.0, type(x) returns a proper type instead of a string.

Right now we are comparing types using strings (which was emphasized for v0.0.6). In the future, in order to maintain compatibility with both older and newer typst versions, we should compare types using type on objects of known type, e.g. instead of _type(thing) == "array" use type(thing) == type(()) or something like that, which would be compatible from v0.2.0 to v0.8.0.