Steps to reproduce
Open a new Note.
Create a Task List.
Create some Task.
Shift Enter that Task to keep writing inside that task but on another line.
Type something there.
Shift Enter 2 times.
Write something and note it gets written as if it were code inside ``
Did you follow the troubleshooting guide? [Y/N]
Y
Expected result
The new lines should appear as normal text.
Actual result
The new lines are displayed as if inside ``.
Environment
SYSTEM INFO:
Obsidian version: v1.8.10
Installer version: v1.7.6
Operating system: #1-NixOS SMP PREEMPT_DYNAMIC Thu Mar 13 11:58:41 UTC 2025 6.6.83
Login status: not logged in
Language: en
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on
RECOMMENDATIONS:
none
Additional information
I tested it with the default theme as well. This theme just highlights more the `` blocks.
The hard return (Shift+Enter) is coded in the text file as an “ordinary” return (LF
in linux, CR+LF
in Windows), followed by spaces. The second hard return creates a line containing spaces and a return, i.e., white space. In markdown, whitespace after a list (here tasklist) ends the list. The next line is thus considered a new paragraph. As it starts with (at least 4) spaces, it is seen as code formatting.
As such, having an empty line within a task (list) item is not supported.
One trick to obtain the visual appearance you are after can be to insert an invisible separator character (U+2063) after the second Shift+Enter.
I’m able to reproduce the behavior. Following the repro instructions with an unordered list instead of a task list doesn’t produce the code block behavior. I note too that more indentation is created in the task list, presumably to account for the extra characters in task list markers. I imagine the issue might be related to that.
White space after a list item doesn’t necessarily end a list if the correct indentation is used. You can put multiple paragraphs in a list item.