this post was submitted on 02 Dec 2026
1 points (60.0% liked)

Open Source

50339 readers
251 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 7 years ago
MODERATORS
 

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.

top 7 comments
sorted by: hot top controversial new old
[–] HelloRoot@lemy.lol 1 points 22 minutes ago (1 children)
[–] ki4jgt@feddit.org 1 points 14 minutes ago* (last edited 14 minutes ago)

This doesn't happen for me, in any of my editors. And this question was asked 14 years ago. 14 years and the problem still isn't solved?

[–] SrMono@feddit.org 0 points 24 minutes ago* (last edited 22 minutes ago) (1 children)

Just to be sure: you know that lists and enumerations are already supported?

- unordered list
- …

And


1. Ordered list
2. …

Resulting in

  • this
  • …

And

  1. that
  2. …

Typically the ordered lists are fine wjth everything being numbered with 1. . The count gets increased automatically.

Also, some Apps support checkable todo list like so:

-[ ] todo
[–] ki4jgt@feddit.org 2 points 20 minutes ago* (last edited 17 minutes ago) (2 children)

I know this, but. . .

  1. Go shopping
  2. Feed the dog
  3. Water plants
  4. Pay bills
  5. Go get mail
  6. Put gas in the car

Should really look like:

  1. Water plants
  2. Feed the dog
  3. Go get mail
  4. Put gas in the car
  5. Go shopping
  6. Pay bills

Copy the first list and try to reorder the items without creating a separate list. You can't. You have to create an entirely separate list, put everything in order, then make it the default list. Imagine having to work with a list of hundreds of items. That's not very user-friendly, which is the whole purpose of the spec.

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

[–] HelloRoot@lemy.lol 2 points 14 minutes ago* (last edited 13 minutes ago) (1 children)

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.org 1 points 12 minutes 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
[–] SrMono@feddit.org 1 points 14 minutes ago* (last edited 14 minutes ago)

Well, it’s just a markup language which gets used for everything. All renderes are interpreting the language a tat differently, introducing other features and little helpers. Som interpreter are stricter, others aren’t.

Point being, features depend on the used interpreter and platforms like githubc, gitlab, reddit, lemmy, … chose different interpreter, as they see fit.

If I’m not mistaken, markdown started with this in 2004: https://daringfireball.net/projects/markdown/