feat(image): added support for typst. Closes #1235

This commit is contained in:
Folke Lemaitre 2025-02-17 13:28:14 +01:00
parent ae11e95f0c
commit 507c1836e3
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 14 additions and 0 deletions

6
queries/typst/images.scm Normal file
View file

@ -0,0 +1,6 @@
(call
(ident) @ident
(#eq? @ident "image")
(group (string) @image.src)
(#offset! @image.src 0 1 0 -1)
) @image

8
tests/image/test.typ Normal file
View file

@ -0,0 +1,8 @@
#figure(
image("test.png", width: 80%),
caption: [
A step in the molecular testing
pipeline of our lab.
],
)