masukomi / masukomi/vim-markdown-folding

Stacked folding - content does not fold into the heading

Open
#49 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vim Script
Stars
257
Forks
44
PR merge metrics
No merged PRs in 30d

Description

I am having trouble getting Stacked Folding to work correctly.

Here is a sample doc:
```
## Heading 1
This is the content for my first heading.

## Heading 2
This is the content for my second heading.
```
When I fold it, this is what I get. Notice the content under each heading appears on its own line:
```
## Heading 1
[3 lines]---------------------------
## Heading 2
[3 lines]---------------------------
```
But, this is what I want (and what Masukomi's readme says the stacked folds should look like):
```
## Heading 1 [3 lines]---------------------------
## Heading 2 [3 lines]---------------------------
```

How can I get my stacked folds to look like this?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the sample Markdown headings and compare the current stacked-fold display with the desired README example. Start by reading the repository README and locating the folding behavior for stacked headings; done means each heading and its folded line appear on the same line as shown in the requested output.

Written by the indexing model from the issue text.

Assessment

Tech stack
vim
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.