Spacing between headings when toggled closed

Things I have tried

  • Looked throughout settings, can’t find anything
  • Looked for a community plug-in (inc. Minimal theme settings), can’t find anything
  • Looked throughout forum, can’t find

(could be being blind on all of the above!)

What I’m trying to do

When I close a heading, I want to have 1 line (or at least equivilant, even if it isn’t techincally a line) spacing between the headings. To be clear, when the headings are open I don’t want this to be the case (i.e. changing my spacing system wide won’t solve this issue).

Example:

Current situation:

When Open
Heading 2
Some text
Heading 2
Some text

When closed:
Heading 2
Heading 2

Desired Outcome:

When Open
Heading 2
Some text
Heading 2
Some text

When closed:
Heading 2

Heading 2


Essentially, what I want to avoid is when I have a document with a large number of headings which are closed, it doesn’t look like this

Heading 2
Heading 2
Heading 2
Heading 2
Heading 2
Heading 2
Heading 2
Heading 2

In a dream scenario, I’d be able to configure these settings on a Heading level (i.e. have different settings for a H2 & H3) but let’s walk before we can run!!

Any feedback much appreciated, thanks :slight_smile: