This commit is contained in:
sencer
2025-01-04 02:16:08 +03:00
committed by GitHub
2 changed files with 16 additions and 0 deletions

View File

@@ -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