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.

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

    Which is more readable in the raw, a list of mis-numbered lines, or a list of lines starting with a period?

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

      Both equally badly, but for somebody who doesn’t know markdown, a list starting with 1. still looks like a numbered list, just weirdly numbered. But nobody knows why there is a dot at the beginning of the line until they learn that it shall magically be translated into a properly numbered list.

      Thinking about it that way often gives youa good judgement on which option ismore intuitive for users.

      “Clever tricks” are not intuitive.