From 141d1aa0813b7914f06ab56e429061d3d53989fa Mon Sep 17 00:00:00 2001 From: Rane Brown Date: Sat, 19 Oct 2019 10:45:45 -0600 Subject: [PATCH] Treat math blocks in the same manner as code blocks --- autoload/vimwiki/u.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autoload/vimwiki/u.vim b/autoload/vimwiki/u.vim index 3c29549..2a9fe78 100644 --- a/autoload/vimwiki/u.vim +++ b/autoload/vimwiki/u.vim @@ -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