Collapsing headings: hope to add a button to toggle if the folded text stops at the first blank line when collapsing headings

Use case or problem

Blank lines are often used to separate different sections within a note. Since sections sometimes use headings to manage hierarchical levels, sometimes use indentation, and sometimes a combination of both, this can cause issues. Specifically, when trying to collapse a heading, it will continue collapsing until it reaches the next heading at the same level. This means that collapsing the main heading of a section might inadvertently fold several subsequent sections as well, which is not the desired outcome.

Proposed solution

I hope to add a button in the settings menu that allows users to toggle whether the folded text range stops at the first blank line encountered after the heading when collapsing headings.

This would cause only the first paragraph to be folded, because paragraphs in Markdown are separated by blank lines. Do you mean for it to stop at the first set of multiple blank lines, or are you it leaving blank lines between your paragraphs?