Auto commit: 2024-11-08 00:40:01
This commit is contained in:
parent
a813b0038f
commit
95b660c8f1
1 changed files with 3 additions and 3 deletions
|
@ -27,12 +27,12 @@ vim.api.nvim_create_autocmd("FileType", {
|
|||
pattern = "markdown",
|
||||
callback = function()
|
||||
vim.cmd([[
|
||||
syn region math start=/\$\$/ end=/\$\$/
|
||||
syn region math start=/\$\$/ end=/\$\$/ contained contains=@tex
|
||||
" inline math
|
||||
syn match math '\$[^$].\{-}\$'
|
||||
syn match math '\$[^$].\{-}\$' contained contains=@tex
|
||||
|
||||
" actually highlight the region we defined as "math"
|
||||
hi link math Statement
|
||||
" hi link math Statement
|
||||
]])
|
||||
end,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue