Treat math blocks in the same manner as code blocks

This commit is contained in:
Rane Brown 2019-10-19 10:45:45 -06:00
parent 4bc6ff4547
commit 141d1aa081
1 changed files with 4 additions and 1 deletions

View File

@ -97,7 +97,10 @@ endfunction
function! vimwiki#u#is_codeblock(lnum)
let syn_g = synIDattr(synID(a:lnum,1,1),'name')
if syn_g =~# 'textSnip.*' || syn_g =~# 'VimwikiPre.*' || syn_g =~# '.*Comment'
if syn_g =~# 'textSnip.*'
\ || syn_g =~# 'VimwikiPre.*'
\ || syn_g =~# 'VimwikiMath.*'
\ || syn_g =~# '.*Comment'
return 1
else
return 0