AST Access?
I'm looking for a way to access the parsed representation of a Typst doc from Python. Does this library provide that? If not, would you be open to a PR that adds that functionality?
I want to introspect Typst templates to identify the parameters needed to compile them. I will use this to dynamically create a user-facing form for the template so a user can provide the required information and get a compiled PDF directly.
Looks like the query.rs module is relevant, but this functionality doesn't appear to be documented.
query is documented in https://github.com/messense/typst-py/blob/42fa8b2fd145d29569ed122ff50c189a45c8c44b/python/typst/init.pyi#L264-L290