mirror of
https://github.com/tpope/vim-markdown.git
synced 2025-11-18 23:03:40 -05:00
Merge 04701225ad into f9f845f28f
This commit is contained in:
@@ -54,6 +54,18 @@ function! MarkdownFold() abort
|
||||
return ">2"
|
||||
endif
|
||||
|
||||
" Front matter
|
||||
if v:lnum == 1 && line == '---'
|
||||
let b:markdown_frontmatter = 1
|
||||
return ">1"
|
||||
endif
|
||||
|
||||
" End of front matter
|
||||
if (line == '...') && b:markdown_frontmatter
|
||||
unlet b:markdown_frontmatter
|
||||
return '<1'
|
||||
endif
|
||||
|
||||
return "="
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user