mirror of
https://github.com/folke/snacks.nvim
synced 2025-07-07 21:25:11 +00:00
fix(image.latex): don't nest image nodes
This commit is contained in:
parent
6917597f6d
commit
714d7616f0
1 changed files with 11 additions and 3 deletions
|
@ -1,7 +1,15 @@
|
||||||
(inline_formula) @image.content @image
|
(inline_formula
|
||||||
|
(#set! image.ext "math.tex"))
|
||||||
|
@image.content @image
|
||||||
|
|
||||||
(displayed_equation) @image.content @image
|
(displayed_equation
|
||||||
(math_environment) @image.content @image
|
(#set! image.ext "math.tex"))
|
||||||
|
@image.content @image
|
||||||
|
|
||||||
|
((math_environment
|
||||||
|
(#set! image.ext "math.tex"))
|
||||||
|
@image.content @image
|
||||||
|
(#not-has-ancestor? @image "displayed_equation"))
|
||||||
|
|
||||||
(graphics_include
|
(graphics_include
|
||||||
(_ (path) @image.src)
|
(_ (path) @image.src)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue