masukomi / vim-markdown-folding

Fold markdown documents by section.
248 stars 43 forks source link

[WIP] fold on fenced code blocks #13

Closed aaren closed 5 years ago

aaren commented 9 years ago

You probably don't want to merge this as-is but I thought I'd let you see what I'm doing.

I wanted to be able to fold fenced code blocks and that is what this allows you to do.

vim-pandoc lets you fold fenced code blocks but it does so using foldmethod=syntax which can get pretty slow.

Also I've required headers to be preceded by a blank line (as per the pandoc spec, but not the original markdown spec).

masukomi commented 5 years ago

closing this PR because support for folding on fenced code blocks is now in there.