hyperlist.vim icon indicating copy to clipboard operation
hyperlist.vim copied to clipboard

Folding not working inside markdown fenced codeblocks

Open tionis opened this issue 4 years ago • 3 comments

Folding doesn't work inside markdown fenced codeblocks formatted like this (backspaces only here for github formatting):

\```hl 
test task 
    another test task
\```

While (neo)vim does select the correct plugin to handle the language, it doesn't detect the folds. Links however do work.
I would tackle this problem myself, but as the codebase is a bit intimidating and I'm not that familiar with vimscript I would need some pointers first.

tionis avatar May 18 '21 09:05 tionis

I'm not that familiar with neovim, so we could make a dig at this together if you want. What pointers would you like? We could scheduale a chat to play ball on this.

isene avatar Jun 14 '21 07:06 isene

I will try if I can reproduce the bug in vim when I get to it.
If this doesn't work I may have to dig into the handling of markdown in neovim specifically.

tionis avatar Jun 14 '21 11:06 tionis

Ok, I managed to reproduce the issue in vim with following vimrc (using vim plug):

call plug#begin('~/.config/vim/plugged')
Plug 'isene/hyperlist.vim'
call plug#end()
let g:markdown_fenced_languages = ['hyperlist', 'hl=hyperlist'] 

tionis avatar Jun 14 '21 13:06 tionis