Problem with folding list in preview mode

Steps to reproduce

  1. create a bullet list item
  2. create indented bullet list and paragraphs on the following lines

Expected result

Folding of the first bullet list item should fold all the following indented paragraphs and list items.

Actual result

The folding works as expected in editor mode, but becomes weird under preview mode when there is a mixture of indented list items and paragraphs. It will only fold all the indented list items but not any paragraph, which makes it a little bit counter-intuitive – you may hardly realize there are some list items folded when you still see some children text under the parent list item.

The following screenshots are captured from Obsidian with no custom theme and in safe mode.

Unfolded content in the editor mode
image

Folded in the editor mode
image

Unfolded in the preview mode
image

Folded in the preview mode
image

Environment

  • Operating system: MacOS 11.2.3
  • Obsidian version: 0.11.5

Additional information

Please resubmit this bug report with default theme (no css) and no third-party plugins enabled.

I have revised the bug report. Now the images are captured under factory settings.