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.

  • HelloRoot@lemy.lol
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    2 days ago

    All of my markdown editors support auto-numbering, but not when you rearrange items.

    What happens if you write:

    1. Water plants
    1. Feed the dog
    1. Go get mail
    1. Put gas in the car
    1. Go shopping
    1. Pay bills
    

    and then rearrange? It should always autonumber correctly then

    • ki4jgt@feddit.orgOP
      link
      fedilink
      arrow-up
      1
      arrow-down
      7
      ·
      2 days ago

      My counter to this is: Markdown’s original purpose was to look good in a text editor.

      Which looks better?

      1. Be nice to your sister
      7. Don't eat sweets before dinner
      5. Walk the dog for your allowance
      

      – or –

      . Be nice to your sister
      . Don't eat sweets before dinner
      . Walk the dog for your allowance
      
      • Pamasich@kbin.earth
        link
        fedilink
        arrow-up
        4
        ·
        2 days ago

        Reddit lets you write

        1. something
        - another thing
        - third thing
        - fourth thing
        

        and it numbers them all in sequence. I think that alleviates the issue you point out there, but I don’t know how widespread this behavior is, if it even extends beyond Reddit at all.

    • ki4jgt@feddit.orgOP
      link
      fedilink
      arrow-up
      2
      arrow-down
      3
      ·
      2 days ago

      I see:

      1. Water plants
      1. Feed the dog
      1. Go get mail
      1. Put gas in the car
      1. Go shopping
      1. Pay bills
      
      • lime!@feddit.nu
        link
        fedilink
        arrow-up
        8
        ·
        edit-2
        2 days ago

        then your client is out of spec. your two lists in the parent comment have identical numbering in the rendered text.

      • HelloRoot@lemy.lol
        link
        fedilink
        English
        arrow-up
        6
        ·
        edit-2
        1 day ago

        Then instead of trying to open an issue and change the spec, open an issue with your client/editor to implement automatic kist enumeration.