You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting lists right is tricky for markdown newcomers.
Enter should probably continue list item; second Enter would start new item; third Enter would close list.
List items should auto-indent so text (not bullet) is aligned to multiple of 4 spaces, so continuation lines can line up nicely. Reindent when typing - ("electric"), on Enter, or both?
Tab/Shift+Tab when notheng is selected should affect whole paragraph / list item (incl. sub-items) etc.
There are 2 ways to line up list text with continuation lines:
Spaces before bullet:
+ A
+ B
or
1. A
2. B
Spaces after bullet:
* A
* B
or
1. A
2. B
For some reason I've always only considered the first way but I now see Gruber's markdown doc uses the second in all examples.
Both parse exactly the same in markdown. The second has the marginal benefit of also parsing right as reStructuredText (not as list inside blockquote) but that doesn't matter to mathdown users.
(I simply have a soft spot for reST having spent a few years on the docutils mailing list.)
Will have to pick preferred one for the user. Or maybe not?
For first style, I should make -+*. and/or space electric, and as soon as you type - the line will snap 2 spaces right. Users preferring 2nd style will have a hard time. Although it's possible to let user type more spaces after bullet and shift bullet to the left correspondingly.
For second style, you may type spaces before the bullet, or not; then as soon as you type the bullet the remaining spaces are inserted, moving the cursor to column 4.
So I can make sure that fully typing * or * works as desired either way; the difference is what style you get when you only type *.
Activity
cben commentedon Jun 19, 2014
https://workflowy.com is probably the best list editor currently on the web. Copy their shortcuts.
(but they do Enter for new item and Shift+Enter for smaller-font continuation — seems their model of items is "title + optional body")
cben commentedon Oct 1, 2014
There are 2 ways to line up list text with continuation lines:
For some reason I've always only considered the first way but I now see Gruber's markdown doc uses the second in all examples.
Both parse exactly the same in markdown. The second has the marginal benefit of also parsing right as reStructuredText (not as list inside blockquote) but that doesn't matter to mathdown users.
(I simply have a soft spot for reST having spent a few years on the docutils mailing list.)
Will have to pick preferred one for the user. Or maybe not?
-+*.and/or space electric, and as soon as you type-the line will snap 2 spaces right. Users preferring 2nd style will have a hard time. Although it's possible to let user type more spaces after bullet and shift bullet to the left correspondingly.So I can make sure that fully typing
*or*works as desired either way; the difference is what style you get when you only type*.[-]Smarter indentation[/-][+]List assist[/+]