X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/63aabf4b47fc944afc210b974574d158eb7a08d0..c4aea186135ad663d21268beb4c12ffa3a2c810c:/ftplugin/markdown.vim?ds=inline diff --git a/ftplugin/markdown.vim b/ftplugin/markdown.vim index 7e2b35e..3f084f2 100644 --- a/ftplugin/markdown.vim +++ b/ftplugin/markdown.vim @@ -318,7 +318,7 @@ function! s:Toc(...) let b:fenced_block = 0 endif endif - if l:line =~ '^#\+' || l:l1 =~ '^==\+\s*' || l:l1 =~ '^--\+\s*' + if l:line =~ '^#\+' || (l:l1 =~ '^=\+\s*$' || l:l1 =~ '^-\+\s*$') && l:line =~ '^\S' let b:is_header = 1 else let b:is_header = 0