Markdown should auto-number lines beginning with a period.

# Today's To-Do List
. Go shopping
. Feed the dog
. Water plants
. Pay bills
. Go get mail
. Put gas in the car

Why? Because you might need to get your mail before paying your bills. Changing the order means renumbering everything by hand. And if you have a huge list of things to do, you’ll be renumbering every single item for every single change you make.

You can see how long the list is now. Imagine a couple hundred items, and you have to delete something. It’s why HTML has ol and ul, instead of forcing you to number things by hand.

  • A_norny_mousse@piefed.social
    link
    fedilink
    English
    arrow-up
    19
    ·
    edit-2
    1 day ago

    This doesn’t happen for me, in any of my editors.

    Then there is a problem either with your editors or between keyboard and chair. Sorry. The

    1. asdas
    1. werwerwer
    1. cvbcvbcvb
    

    syntax works on all markdown implementations I’m aware of.

    NB: the above is an example of the markdown syntax used, not the end result. End result here:

    1. asdas
    2. werwerwer
    3. cvbcvbcvb
    • grue@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      1 day ago

      Fun fact: unlike R*ddit, Lemmy’s markdown implementation can start a list at a number other than 1 (but it’ll still auto-number starting with the number you write).

      2. Asdf
      2. Asff
      2. Adf
      
      1. Asdf
      2. Asff
      3. Adf

      This is somewhat helpful if you want to split up your list with a paragraph in the middle, or if you want to continue a list from somebody else’s comment.

      • A_norny_mousse@piefed.social
        link
        fedilink
        English
        arrow-up
        4
        arrow-down
        1
        ·
        1 day ago

        I think this is implementation-specific; my example is not, or at least I have never encountered an implementation that doesn’t do that, since it’s part of the original spec.