Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support typst query #35

Merged
merged 5 commits into from
May 21, 2024
Merged

feat: support typst query #35

merged 5 commits into from
May 21, 2024

Conversation

OrangeX4
Copy link
Collaborator

Support typst query like typst query example.typ "<note>" --field value --one document

values = json.loads(typst.query("hello.typ", "<note>", field="value", one=True))

This is useful for getting metadata from typst files.

python/typst/__init__.pyi Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
@messense
Copy link
Owner

LGTM, please resolve merge conflicts, thanks!

@OrangeX4
Copy link
Collaborator Author

done :-)

@messense messense merged commit c7c9604 into messense:main May 21, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants