The original post was at:
Steps to reproduce
In edit mode, create a note like the following:
There are 4 separated list
1. 4 5 6
The following lists are merged in preview mode (which I think is wrong)
- 4 5 6
And then turn to the preview mode
I’d like to see independent lists.
the lists are merged together in preview mode.
which I thought is a bug of Obsidian. But the developer reminds me that it is a loose list (a feature, I guess) of markdown. So I come to the Help section looking for further help.
I’m not so familiar with markdown. So my question is simple, how can I create multiple lists in Obsidian，which has a preview looks like the following:
This is a “feature” of markdown.
(Is the strict line breaks preference enabled? I forget how that interferes with this, but it plays a role.)
I believe you need to add a space—literally a blank line with white space characters or similar—between the lists. Otherwise markdown concatenates them automatically.
I just tried to turn on/off the strict line breaks switch, but I did not notice the change.
I also tried to input a space or a tab, but I did not notice the change in preview mode, neither. Perhaps, the spaces or the tabs that I inputed in the empty line are eaten before they are sent to a markdown phaser?
Oh, I understand now. This is a common issue. See:
Forcing a newline / hard line break / carriage return - canonical
I am familiar with markdown. When I add multiple empty lines in the markdown file, I expect it will also show those lines in the preview mode, but seems no matter how many lines I added in markdown, those lines are always be eaten up in the preview mode. (shown below)
I am wondering is it possible to keep those lines in Obsidian, or is there some settings I am missing? Thank you!
My markdown file:
and the preview, you can see the spaces above section 2 have been eaten up.
There’s no great solution, unfortunately.