Therefore, we strongly recommend you to search the forum with possible keywords. If your request is very similar to an existing one, like it () and make a meaningful comment, rather than creating a new thread. It also keeps the forum sane!
I’d love to comment if only the forum would STOP CLOSING OLD THREADS automatically!
If you find duplicate threads, feel free to send the moderators a message.
The last time I sent a moderator a message about a thread did not turn out well, so no thanks.
Use case or problem
I personally consider it a bug to not render checkboxes if they’re indented as in the screenshot below (repro steps included within):
But apparently this was deemed to abide by the Markdown spec, so here I am upvoting the closed thread:
Proposed solution
The string - [ ] following the zero or more spaces at the beginning of the line could be rendered as a checkbox regardless of the number of spaces preceding the string.
Assuming Strict line breaks is disabled, examples 2 and 3 are code blocks per CommonMark, which Obsidian renders accordingly. (With Strict line breaks enabled, they’re uninterrupted paragraphs, which Obsidian also renders accordingly.)
As for example 1, consider this:
a
- [ ] a1
b
1. b1
c
- c1
d
- [ ] d1 (three spaces)
Obsidian handles checkbox markers (a), which are list markers, the same way it handles other list markers (b and c). That seems correct and consistent, in Reading.
d is a checkbox, as it begins with less than four spaces, and Obsidian renders it accordingly.
The seemingly debatable interpretations are the two editing modes’ auto-numbering of b (whose numbers can’t be changed when Smart lists is enabled) and that Obsidian auto-adds list markers at all for a, b, and c. Strictly, I would think those wouldn’t be treated like lists in any way. (It doesn’t bother me; just pointing it out.)
It seems (to me) that none of Tu2_atmanand’s examples should be checkboxes. The unusual part is that Obsidian applies its Smart lists to them when editing.
Markdown is not “perfect”, we all agree. And there are different interpretations of some unusual or limit cases, we all know. Hence, we have to accept some “limitations” of such or such implementation. Even CommonMark doesn’t cover everything and not every Markdown implementation complies to it completely. But there is a general agreement that Obsidian is pretty close to being totally CommonMark compliant. Thus, we shouldn’t feel too constraint or limited by the Obsidian way of writing in Markdown.
That said, I’m on the same page as WhiteNoise ; I think it’s OK if Obsidian considers that “what is indented by 4 spaces or by a tab and is not subordinated to a list item” is a code block, as explained here in the official documentation.