Bugs
Done

Toggle: multiple issues while converting text to Toggle and back

What went wrong?

Honestly, I don't understand the logic.
In my other bug report that I wrote minutes ago, the behavior was different then what I show here.
In the other BR, if I convert a text line into Toggle, the Blocks below it become included into the new Toggle.

But in this example here, other things happen:

  1. Sometimes, only one Block becomes included to the new Toggle.
  2. Sometimes, nothing becomes included. Instead, the new Toggle is empty (with an empty line that belongs to it).
  3. When I convert the Toggle back to normal text and then again to Toggle, it can happen that I end up with the empty line that was added by the empty Toggle.

Sorry if it sounds confusing, maybe even my video is a little confusing.
It seems that here are multiple bugs at once and I'm not sure what's intended and what not.
What I especially not understand: why becomes sometimes nothing included, but sometimes exact one Block, while sometimes many Blocks below become included?

What should happen?

Consistent behavior that one can understand.

4 Comments

Sign in to comment

K
Kaye
Kaye·10/23/2026(edited)

I'm not clear on what the issue is.

Toggle behaviour: if you apply a toggle to a heading (or convert a heading to a toggled heading), it will nest the blocks after it until it reaches a heading of the same tier. This does not happen with regular blocks because they are already on the lowest 'tier', hence it doesn't make sense for them to nest other regular tex blocks after it. You can turn this behaviour off in the settings if you wish.

Closing this for now, but can re-open if I've misunderstood you.

C
Code-Jack
Code-Jack·10/23/2026

Let me point out only the aspect with the empty line:

K
Kaye
Kaye·10/23/2026

I'm not sure I picked up any bugs in the entire first part of the video. The last part that you're refernecing is that when a toggle block (that's empty) gets converted back to a regular block it leaves behind an empty block? Is that the only bug or is there more?

C
Code-Jack
Code-Jack·10/23/2026

I believe that I slowly start to understand the logic:
1. If I simply convert a normal text line into a Toggle, then it includes nothing in it. Instead, it generates an empty new line below it, ready to get input.
2. But if I want that everything below the new Toggle becomes included in it (til the next headline as stop), then I need to make the text line a headline first, before I convert it into a Toggle.

Hmm, like you, I'm now also not convinced anymore that here is a bug.
It is confusing first, but as soon as one knows it, it makes sense.

And the thing with the remaining empty line after converting an empty Toggle back into normal text ... hmmm, one can have this or that opinion about that.

-- Let this ticked closed.
Seems that it was more my own confusion instead of a bunch of bugs. :-)