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

View File

@ -97,7 +97,10 @@ endfunction
function! vimwiki#u#is_codeblock(lnum) function! vimwiki#u#is_codeblock(lnum)
let syn_g = synIDattr(synID(a:lnum,1,1),'name') 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 return 1
else else
return 0 return 0