Why does Gohugo sometimes break Markdown heading?

Hi there,
I wonder why sometimes Gohugo breaks Markdown heading.

For example

# this is a good title
## a little bit more
### hey!

sometimes it appears

This is a good title

## a little bit more

### hey

Do you know any ways to debug this?

I am unable to reproduce this behavior.

Please post a link to the public repository for your site. See:

Include a link to the source code repository of your project, because we really need the context of seeing your templates and partials to be able to help you. It is trivial to do a quick git clone on your repo, then run hugo server in your project, to help you out. On the other hand, recreating your code from screenshots, or sort of guessing at it, is not.

If you can’t share your repository for whatever reason, consider creating a dummy repo that you can share, which reproduces the problem you’re experiencing.