Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Folding not working inside markdown fenced codeblocks #12

Open
tionis opened this issue May 18, 2021 · 3 comments
Open

Folding not working inside markdown fenced codeblocks #12

tionis opened this issue May 18, 2021 · 3 comments

Comments

@tionis
Copy link

tionis commented May 18, 2021

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.

@isene
Copy link
Owner

isene commented Jun 14, 2021

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.

@tionis
Copy link
Author

tionis commented Jun 14, 2021

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
Copy link
Author

tionis commented Jun 14, 2021

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'] 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants