Hierarchical text (not headings!)

What I’m trying to do

Find a way to structure hierarchical text (not just the headings) fast (keyboard-based) while note-taking, and later see it in reading mode.

Example

So in that note, we would need/benefit of a way to establish a hierarchy, not for the headings, but for the actual <p> content (a way to specify “this is inside of this inside of that”, nested content-like). The headings would be used for example for H1 Course name: Cognitive science, H2 Session: 2, H3 Topic: Philosophy of cognitive science, H4 Subtopic, and H5 Concept.


(from a different software)

Reason

I’m aware markdown is at odds with indenting or formatting with tabs, but not with hierarchy. This is the same philosophy we use when coding blocks in certain languages, indenting to structure what belongs where and easily navigate it visually. Could we enable anything similar for plain text?

Or is there any way to tag fragments of text with these different levels / semantic meanings? As if HTML would have a <p1>, <p2>, <p3>, <p4>, <p5>. To me, it wouldn’t need to change the size, color or font of the text, nor add bullet-points, I am really just looking for some consistent levels of spacing on its left.

Things I have tried

  • Installing various themes and format-related plugins.
  • Using headings.
  • Using unordered lists with - and +. But they don’t work well when it comes to multiple levels (i.e. 5 levels of hierarchy/indentation within a single “paragraph” of text), unless it’s code.
  • Working on editing mode all the time. See below editing vs. reading mode with and without ignoring single breaks activated.


    preview without single breaks
  • (possibility) Editing the CSS to format all lists as indents. But then we miss the feature of having a list, which we may need for other notes and contents. And could it even work for 5 levels?
  • (possibility) Plug-in that converts a tabs into x spaces (instead of the other way around), although that seems sadly a non-semantic solution.

Ideas

Any ideas and brainstorming are very welcome and appreciated, please :slight_smile:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.