mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
feat(image): added support for typst
. Closes #1235
This commit is contained in:
parent
ae11e95f0c
commit
507c1836e3
2 changed files with 14 additions and 0 deletions
6
queries/typst/images.scm
Normal file
6
queries/typst/images.scm
Normal 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
8
tests/image/test.typ
Normal file
|
@ -0,0 +1,8 @@
|
|||
|
||||
#figure(
|
||||
image("test.png", width: 80%),
|
||||
caption: [
|
||||
A step in the molecular testing
|
||||
pipeline of our lab.
|
||||
],
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue