Mc-Zen / tidy

A documentation generator for Typst in Typst.
https://typst.app/universe/package/tidy
MIT License
57 stars 2 forks source link

Different type labels from official document (`str`→`string`, `int` → `integer`, etc.) #16

Closed mkpoli closed 8 months ago

mkpoli commented 8 months ago

It seems that the labels of str and int type is different between tidy and Typst's official documentation, where

the string type is str image https://typst.app/docs/reference/foundations/str/

the integer type is int image https://typst.app/docs/reference/foundations/int/

It seems that in old version of Typst, type(1) yields "integer", so is this a legacy or is it intended?

Mc-Zen commented 8 months ago

This is indeed legacy and also applies to relative (which was originally relative length).

Mc-Zen commented 8 months ago

The old versions will also be supported in favour of backwards-compatibility