The ability to have ordered lists maintain ordering with a block inserted in between. Currently, the ordering is broken for any block inserted in between a set of steps.
Why do you need it?
To describe to users a command to run, or contents of a file, for a particular sequence.
How would it work?
The same way that Markdown handles nested code blocks already.
Unfortunately these kind of changes to the editor are quite core changes, and they affect many systems of ours, both in-house and open source libraries. While I am not promising you of these changes, I can tell you that we’ll try our best.
Apologies about this. I will keep you updated of changes.
forced manual numbers for short-line lists (that wouldn’t expose the hack with fugly indents)
Agreed that both of these would be nice to have, but thus far, I have managed to write my way around the need, or to hack it with bullets or manual numbers. YMMV.
You can now use nested lists on DeveloperHub. This is a beta feature and we are still ironing out some kinks - specially with where the cursor ends up after indenting/outdenting.
You can also continue numbering for ordered lists.
Limitation: Continuing numbering for any other than first-level ordered list after placing content/block is not possible.
This may not be the same fix to the same problem, as I was working with UNordered lists and employing multiple levels. Is there a limit (beyond good taste and restraint) on the number of sub-bullets can be nested? I haven’t played with Ordered Lists yet, but I saw a clear limit mentioned on those.https://res.cloudinary.com/developerhub/image/upload/v1621462668/v2_3685/ehjjd8xxs3g1ak3mi4fz.png
I love having the extra depth of formatting available, but could see how it could lead to bad habits.
We have not coded specifically any limit to number of sub-bullets. I have just added 16 nested sub-bullets and that’s almost all the horizontal width that a line could take possibly.
The only limitation of nested lists is that once you start a list and get to second level or more, then if you interrupt it with a block, the block would not also be indented, but the real limitation is that you cannot then start the list at the previous level (second or more), it has to start at first level.
You can continue numbering after a code block by typing the number, dot then space. However, if you wish to enter a code block between already existing ordered block then that’s a bit tricky.
@zed Indeed, entering the number explicitly does allow me to continue the ordered list with a block (code, image) in between – thanks!. It’d be nice to be able to drag elements between numbers of an existing OL, as you mentioned, but, this is acceptable for now still.