Live preview and reading mode parse todo lists very differently

I have a document which renders differently in live preview and reading view. Below is the text itself, and screenshots in live preview vs reading view.

- [ ] some parent task
	- [ ] bug
other words below

- [ ] working parent
	- [ ] working child

live preview:
reading view:

I reproduced the bug in restricted mode, though it does appear differently with community plugins on, I’m not sure exactly what’s going on there but it’s problematic enough in restricted mode.

I’m a little worried that the snippet I posted will get sanitized in some way that makes it not reproduce, I will follow up by copying the snippet after I’ve posted this topic. I already tried copying into this page, and then copying back into obsidian and the issue still exists.

Here’s some pictures with restricted mode off on my vault (I later edited the text but I guess it still has whatever whitespace or invisible characters are causing this problem):
live preview:
reading view:

The problem originally came up for me using the obsidian-tasks plugin, which parses the child task in the same way that reading view does (as in, it ignores it entirely).


	Obsidian version: v1.3.4
	Installer version: v1.3.4
	Operating system: #44-Ubuntu SMP PREEMPT_DYNAMIC Tue May 16 14:03:43 UTC 2023 5.19.0-43-generic
	Login status: not logged in
	Insider build toggle: off
	Live preview: on
	Legacy editor: off
	Base theme: light
	Community theme: none
	Snippets enabled: 5
	Restricted mode: on

I just checked and I can reproduce the bug copying from the snippet in my main post.

Reproduced on iOS.

In general:

  • Reading View has the more correct rendering.
  • It’s best (least likely to produce surprising results) to put blank lines between blocks in Markdown.

So if there’s a bug I’d guess its in the Live Preview rendering.

Commonmark says line needed, it seems.

1 Like