Auto commit: 2024-11-08 02:35:01
This commit is contained in:
parent
59b03189f9
commit
4979eadf16
1 changed files with 2 additions and 2 deletions
|
@ -27,9 +27,9 @@ vim.api.nvim_create_autocmd("FileType", {
|
|||
pattern = "markdown",
|
||||
callback = function()
|
||||
vim.cmd([[
|
||||
syn region math start=/\$\$/ end=/\$\$/ contained contains=@tex
|
||||
syn region math start=/\$\$/ end=/\$\$/ contained contains=@tex ft=tex
|
||||
" inline math
|
||||
syn match math '\$[^$].\{-}\$' contained contains=@tex
|
||||
syn match math '\$[^$].\{-}\$' contained contains=@tex ft=tex
|
||||
syn include @tex syntax/tex.vim
|
||||
hi link math @texMath
|
||||
" actually highlight the region we defined as "math"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue