X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/63aabf4b47fc944afc210b974574d158eb7a08d0..7ec58485d1cd1d976e901819080ff078d90f4b77:/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