feat(images): added support for org-mode. Closes #1276

This commit is contained in:
Folke Lemaitre 2025-02-18 23:54:17 +01:00
parent 76f5ee4a1b
commit 10387af009
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 6 additions and 0 deletions

5
queries/org/images.scm Normal file
View file

@ -0,0 +1,5 @@
(
(expr) @image.src
(#match? @image.src "^\\[\\[(file:)?.*(png|jpg)\\]\\]$")
(#offset! @image.src 0 2 0 -2)
)

1
tests/image/test.org Normal file
View file

@ -0,0 +1 @@
[[test.png]]