masukomi / masukomi/vim-markdown-folding
Folding breaks on particular .md file
Nobody has claimed this yet.
- Dominant language
- Vim Script
- Stars
- 257
- Forks
- 44
- PR merge metrics
- No merged PRs in 30d
Description
Hi! I just encountered a problem when folding, if I have the following markdown
in a file:
> \# First
>
> \```
> 1
> 2
> 3
> 4
> 5
>
> 7
> \```
>
> first
>
> \* first
> \* second
> \* third
>
> \# Second
>
> second
Then when I close the fold it 'eats' the second heading. So it goes from

to

Let me know if you can reproduce it. I tried only loading this plugin but
the issue persists. I'm using nvim if that helps.
```
NVIM v0.4.3
Build type: RelWithDebInfo
LuaJIT 2.0.5
Compilation: /usr/bin/gcc-5 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -g -DMIN_LOG_LEVEL=3 -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/home/travis/build/neovim/bot-ci/build/neovim/build/config -I/home/travis/build/neovim/bot-ci/build/neovim/src -I/home/travis/build/neovim/bot-ci/build/neovim/.deps/usr/include -I/usr/include -I/home/travis/build/neovim/bot-ci/build/neovim/build/src/nvim/auto -I/home/travis/build/neovim/bot-ci/build/neovim/build/include
Compiled by travis@travis-job-9a287301-34f2-4b86-92e3-462594f51f36
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/home/travis/build/neovim/bot-ci/build/neovim/build/nvim.AppDir/usr/share/nvim"
Run :checkhealth for more info
```
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the folding problem in nvim v0.4.3 using the Markdown example in the issue, including the fenced block and the second heading. Inspect the plugin's folding behavior around these sections. Done means closing the fold no longer hides or consumes the “# Second” heading.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- markdown, vim
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100