Replies: 1 comment 1 reply
-
Because context returns opaque content, you need to do all your work on the value inside a context block. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Hi everyone,
I'm currently trying to create a template that reads a list of items and generates content from it at the end of a document.
However, it seems that
state.get()
returns a content value instead of the documentedany
which I assumed means, the initial type.Reproduction
This results in the following error:
Expectation
Similar to line 2, I expected the same result at the last line.
If you need any more information, let me know :)
Reproduction URL
https://typst.app/project/rccir0tQw_J7v2A1itRAqh
Operating system
macOS
Typst version
Beta Was this translation helpful? Give feedback.
All reactions