fix(image.latex): don't nest image nodes

This commit is contained in:
Folke Lemaitre 2025-03-01 07:54:48 +01:00
parent 6917597f6d
commit 714d7616f0
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -1,7 +1,15 @@
(inline_formula) @image.content @image
(inline_formula
(#set! image.ext "math.tex"))
@image.content @image
(displayed_equation) @image.content @image
(math_environment) @image.content @image
(displayed_equation
(#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
(_ (path) @image.src)