Skip to main content
10 events
when toggle format what by license comment
Dec 11, 2014 at 20:11 comment added SevenSidedDie I found a discussion of exactly this weirdness. Basically, original Markdown failed to implement nesting indents correctly, and later implementations inherited the problem of whether to write to the spec (four space indents) or write to be compatible with the implementation & existing MD documents (various indents allowed depending on nesting level).
Dec 9, 2014 at 1:17 history edited Brian Ballsun-StantonMod CC BY-SA 3.0
added 99 characters in body
Dec 9, 2014 at 0:58 comment added doppelgreener List levels get quirky. You can start first level anywhere below 4 spaces (because otherwise it will be a code block), second level just needs any different level of indentation (including less indentation), third level and higher only works after you indent by at least four spaces. (But then if you build a staircase of 10 list items, and indent a lower level by 4 spaces... things get really weird. I try to just avoid the edge cases.)
Dec 9, 2014 at 0:49 comment added SevenSidedDie On further testing, even 2-space indents don't work at those nesting levels, unless the top-level item has a 1-space indent. And then breaks at nesting=4 again. The parser must be looking for a minimum indent for each nesting level to count it as a new level.
Dec 9, 2014 at 0:46 comment added SevenSidedDie Huh! I was just going to say that two-space indents also work great (they do, with no weirdness), then noticed one-space indents worked as well and modified my comment. But clearly my brief test totally failed to go far enough. I have no idea what's going on with the parser there...
Dec 9, 2014 at 0:43 comment added Brian Ballsun-Stanton Mod @SevenSidedDie take a look at the source above.
Dec 9, 2014 at 0:43 history edited Brian Ballsun-StantonMod CC BY-SA 3.0
added 194 characters in body
Dec 9, 2014 at 0:42 comment added Brian Ballsun-Stanton Mod I've actually had trouble with two space indents here.
Dec 9, 2014 at 0:38 comment added SevenSidedDie Even just one space of indent before the bullet character works, which is good to know if you're writing it by hand without a tab-to-spaces replacer running. For hand-written sources' readability though, two-space indents is a nice middle ground.
Dec 8, 2014 at 23:56 history answered Brian Ballsun-StantonMod CC BY-SA 3.0