X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/63aabf4b47fc944afc210b974574d158eb7a08d0..f978e653773fdd612fd2e1823ff6646a682ff8d5:/ftplugin/markdown.vim?ds=sidebyside 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