mirror of
https://github.com/folke/snacks.nvim
synced 2025-07-07 21:25:11 +00:00
10 lines
276 B
Scheme
10 lines
276 B
Scheme
|
|
(image
|
|
[
|
|
(link_destination) @image.src
|
|
(image_description (shortcut_link (link_text) @image.src))
|
|
]
|
|
(#gsub! @image.src "|.*" "") ; remove wikilink image options
|
|
(#gsub! @image.src "^<" "") ; remove bracket link
|
|
(#gsub! @image.src ">$" "")
|
|
) @image
|