Problems with using <details>

Hi guys,

two problems:

  1. When using

    for hiding text, the details button is displayed not directly under the last line but with some space. That is very annoying.

  2. When using

    all following headings I create won’t be shown formatted in edit mode but only in reading mode.

  3. Is there a command for hiding text like […] so? And I can click on […] for showing the text?

Thanks a lot!

Things I have tried

What I’m trying to do