mirror of
https://github.com/folke/snacks.nvim
synced 2025-07-07 13:15:08 +00:00
fix(image.markdown): fix image treesitter query. Closes #1300
This commit is contained in:
parent
beaa1c2efc
commit
830ac62815
1 changed files with 2 additions and 1 deletions
|
@ -3,7 +3,8 @@
|
|||
[
|
||||
(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
|
||||
) @image
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue