Repository navigation
v0.3.2
v0.3.2 - Hotfix: Correct LaTeX Parser Usage
What's Fixed
Critical Bug Fix: v0.3.1 used the wrong parser (markdown_inline) which didn't provide proper LaTeX highlighting.
Root Cause
Investigation using :Inspect revealed:
$$blocks in markdown automatically use thelatexparser from nvim-treesitter{math}directives in v0.3.1 usedmarkdown_inlineparser (wrong!)- This caused different highlighting colors for identical LaTeX equations
The Fix
{math} directives now correctly use the latex parser to match $$ block behavior:
Before (v0.3.1):
$$\mathbf{x}$$→ Green LaTeX highlighting ✅{math} \mathbf{x}→ Plain markdown text ❌
After (v0.3.2):
$$\mathbf{x}$$→ Green LaTeX highlighting ✅{math} \mathbf{x}→ Green LaTeX highlighting ✅
Testing
After updating, please:
- Run
:Lazy syncin Neovim - Clear tree-sitter cache:
rm -rf ~/.cache/nvim/ - Restart Neovim
- Both
{math}and$$should now show identical green LaTeX command highlighting
Technical Details
- Changed injection query:
markdown_inline→latexparser - Both formats now use
language: latexwith@function.latexcaptures - LaTeX commands like
\mathbf,\begin{bmatrix},\vdots, etc. now consistently highlighted in green
Thanks to :Inspect tool for helping diagnose the parser mismatch!