feat(glossy): add type-checking

- adds type-checking via the valkyrie package
- fixes handling of groups parameter on #glossary()
- new test for relevant changes
This commit is contained in:
swaits committed 2024-12-16 18:30:09 -07:00
1 parent d2e44f4131
commit 0a87404a18
9 files changed
+112 -10

No files matched your search

+13
View File
@@ -168,6 +168,19 @@ Display the glossary using the `glossary()` function:
)
```
Note that if you want to display terms without a group, you specify that with an
empty string. For example, to show the empty group and then the _Web_ group:
```typst
#glossary(groups: ("", "Web"))
```
Or to just show the empty group (i.e. terms without a group):
```typst
#glossary(groups: (""))
```
### Customizing Term Display
Control how terms appear in the document by providing a custom `show-term` function: