snacks.nvim/queries
Daniel Wennberg 66e3dc4619
fix(image): avoid nested math environments (#2345)
## Description

Inline LaTeX equation preview renders equations twice, partly on top of
each other, if you use nested math environments. Minimal reproducer:

```latex
\documentclass{article}
\begin{document}
\begin{equation}
  \begin{aligned}
    x_+ &= \frac{-b + \sqrt{b^2 - 4ac}}{2a} \, , \\
    x_- &= \frac{-b - \sqrt{b^2 - 4ac}}{2a} \, .
  \end{aligned}
\end{equation}
\end{document}
```

While, adding a test case for this to `test.tex` I also corrected a
package name such that it compiles without error.

## Screenshots

**Before**
<img width="248" height="203" alt="Screenshot 2025-10-24 at 16 22 05"
src="https://github.com/user-attachments/assets/ab55ef8c-1f04-49e5-b731-95b638ac9db7"
/>

**After**
<img width="248" height="203" alt="Screenshot 2025-10-24 at 16 23 33"
src="https://github.com/user-attachments/assets/4d3d53f6-7122-452f-b891-5a712f79fe40"
/>
2025-10-29 14:47:52 +01:00
..
css feat(image): refactor of treesitter queries to support inline image data 2025-02-17 12:49:38 +01:00
diff refactor(picker): move diff injections to scm file 2025-10-28 10:22:44 +01:00
html feat(image): images are now properly scaled based on device DPI and image DPI. Closing #1257 2025-02-18 16:31:37 +01:00
javascript feat(image): refactor of treesitter queries to support inline image data 2025-02-17 12:49:38 +01:00
latex fix(image): avoid nested math environments (#2345) 2025-10-29 14:47:52 +01:00
lua feat(compat): added svim, a compatibility layer for Neovim. Closes #1321 2025-02-20 06:59:44 +01:00
markdown fix(image.queries): add image type 2025-03-01 07:55:36 +01:00
markdown_inline fix(image): markdown inline link query for shortened urls (#1481) 2025-10-20 14:56:50 +02:00
norg fix(image.queries): add image type 2025-03-01 07:55:36 +01:00
scss feat(image): refactor of treesitter queries to support inline image data 2025-02-17 12:49:38 +01:00
svelte feat(image): add support for svelte (#1277) 2025-02-18 16:49:40 +01:00
tsx refactor(image): make tsx inherit from javascript 2025-02-16 15:10:45 +01:00
typst fix(image.queries): add image type 2025-03-01 07:55:36 +01:00
vue feat(image): added support for a bunch of aditional languages 2025-02-16 14:16:15 +01:00