When using headers, I want to be able to “return” to the previous header after using a sub-header. In essence, I imagine this looking like a random hidden block of text (I say “hidden” but the result should be like a “read more →” section within a body of text).
Maybe kind of like the “hide details” option in this text editor?
Write a summary of the hidden details within…
This text will be hidden.
Problem:
What happens, is there is a double-space after the last header (in my photo, H4) and then the text resumes. However, the extra space is ALSO that same header level (H4), meaning that there is now a blank header followed by text.
Question:
Is it possible to just “return to the previous header” like backing out of nested lines (in my photo, returning to H3 or H2, even)? Disclaimer: I don’t know much about coding or markdown, so maybe it’s not possible…
I don’t fully understand what you mean by “return to the previous header”. Can you make a screenshot of the initial state you are in and the state you want to be in?
The yellow block of text is part of Heading A.1 (H3). Is there a way to make it part of the green text (Heading A (H2))? Currently there are 3 ways forward:
Keep typing → This will not change the header level of the text, and all subsequent text will remain under the most recently-used header (H3, in this example photo above; ie, the yellow text is included with the blue text).
Create a new header → This will create a separate header section in the text.
Toggle Heading A.1 (H3, the blue text), and then hit the return key once or twice→ This automatically creates a new header of the same level (H3) as the most recently-used header, which you can then either put text in or leave blank. Regardless, the text underneath this is part of the new header.
Even though this looks like it works as desired, everything after the blue H3 header (Heading A.1) is actually under a second H3 header with a blank entry for the heading, and leaves an extended gap due to the header size.
This is a representation of what I want as far as “nesting” goes.
I see what you mean, but heading sections are defined by the headings, and there is no heading end marker that you can use to close A.1. Even as a reader of the text, how would you know at what level a paragraph belongs? The only thing you can do is to look at the closest heading above.
You can use block quotes or callouts if you have a shorter text that you want to separate from the main text, but those can’t be folded.
It is a de facto convention that everything belongs to a specific heading as long as no heading of the same or higher level follows. If you abolish that convention, text blocks would be scattered throughout the text, making it impossible to clearly assign them to a heading. This would make a table of content meaningless and useless.
What I’d hoped for was a way to create folded sections within a body of text, so that when I’m browsing through later I just see the sub-header with the toggle. But I get why it works the way it does, now.