% Title % Name % Date
write markdown, use pandoc to convert to reveal.js slides.
| function! MarkdownFolds() | |
| let thisline = getline(v:lnum) | |
| if match(thisline, '^##') >= 0 | |
| return ">2" | |
| elseif match(thisline, '^#') >= 0 | |
| return ">1" | |
| else | |
| return "=" | |
| endif | |
| endfunction |