What I’m trying to do
In the image above, the lefthand side is write mode and righthand side is read mode.
I need “hello 3” to be on the same indentation level as “something 2” without it being a new list element (which means it should not create a new number and it needs to be within “hi 2”).
I’m on macOS using the latest version of obsidian.
Things I have tried
I have tried
- cursor at end of “nested something 2)” → cmd + enter → backspace
- cursor at end of “nested something 2)” → cmd + enter → backspace multiple times
- cursor at end of “nested something 2)” → enter (creates a new number, indent level 2) → delete that number by pressing backspace
- cursor at end of “nested something 2)” → enter (creates a new number, indent level 2) → shift + tab (brings indent level to 1, still a number) → delete that number by pressing backspace
no matter what I do, it doesn’t work.. at best “hello 3” is placed under “nested something 2)”. like in the righthand side of the picture above.
I look forward to your guidance.
Using paragraphs may help, if I’ve understood right.
1. Hello
1. hi
something1
2. hi 2
something 2
1. nested something
2. nested something 2)
hello 3
3.
Ok. I tried your solution, this works but it makes empty lines inbetween. Like in the image below. Righthand side is the reading mode. Is there any way to do this without having blank lines above and below the nested nest list?
Also I’m not sure I did it according to your intention. In order to make the paragraphs I did.
- cursor at end of something 2
- shift+enter(blank line)
- shift+enter(blank line)
- write “1. nested something” (creates a nested nested list)
- enter
- write “2. nested something 2)”
- cursor at end of “nested something 2)”
- shift + enter (blank line, indent level 2)
- shift + enter (another blank line, indent level 2)
- backspace
- write “hello 3”
I believe you did.
You should be able to use a CSS snippet to eliminate the blank lines (but it may require some care to not eliminate one that should be there).
What’s happening here is that Markdown has a concept (not widely known) of “tight” and “loose” lists (the terms come from CommonMark but the concept is described simply in original Markdown: “If list items are separated by blank lines”). A tight list is a standard simple list with no blank lines between. A loose list has blank lines between the list items, and when rendered, the contents of the list items are additionally marked as paragraphs.
- for
- example
<li><p>for</p></li>
<li><p>example</p></li>
I guess this is mainly to to enable multi paragraph list items.
By default Obsidian hides this distinction, because it’s confusing to many people when applied to list items that don’t contain multiple paragraphs.