Spacing issue when inserting a line between heading and text

Testing version:
Panda 1.0 (3146) – macOS

What were you doing:
I first wrote a heading and some text bellow it. I then insert line between the heading and the text.

What feature did you use:
Headings.

What happened:
The padding bellow the heading disappeared.

What did you expect to happen:
The padding to stay consistent.

I was able to reproduce this issue on iOS 16.2.
Please find bellow a video showing the bug. Note that I used some highlighting because it’s easier to see the padding between highlighted blocks.