Markdown sucks by design. I hate the fact that I can't use ORG on Lemmy.
Markdown is not a technical markup specification. So, there's not a unified way to render, nor a central authority to change the specs.
I think the proposal goes against the core values of why markdown exists. The point is that the plain text should be legible and comprehensible by humans specifically when it is not rendered. A single dot defeats the purpose as it would depend on the renderer to display the numbers and it is not straight forward interpreted as numbers. If they should be numbers, then write the numbers.
No, but CommonMark (which is used by all three of the platforms named by OP) is.
Yeah, common mark is a spec. It is not the spec.
I always return to the core:
a markdown document should be publishable as-is.
Without having to translate it at all to HTML. Extraneous syntax that break this convention is an automatic no-go.
Most of the specs differences are about resolving technical ambiguity for computers of things that are not an issue for people. You can translate to HTML tags in a dozen different ways. As long as the underlying plain text is readable to a human.
your best chance is to post on the discussion board for commonmark.
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?
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:
- asdas
- werwerwer
- cvbcvbcvb
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
- Asdf
- Asff
- 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.
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.
When viewing your comment in Voyager, all lines start with 1.
They did post a code block, not a real list. So no formatting is happening at all there.
- asdas
- werwerwer
- cvbcvbcvb
How 'bout now (same markdown as above)?
Works perfectly. Another poster noted that you had used the code tag so no markdown was happening. Thanks for putting in the effort, appreciated.
Works for me on lemy.lol for example and in Obsidian.
It's less of a problem and more a design decision.
The whole central concept of markdown is that it stays readable in it's raw form. There is only so much you can do about automatic numbering with that restriction.
Which is more readable in the raw, a list of mis-numbered lines, or a list of lines starting with a period?
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.
Just to be sure: you know that lists and enumerations are already supported?
- unordered list
- …
And
1. Ordered list
2. …
Resulting in
- this
- …
And
- that
- …
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
I know this, but. . .
- Go shopping
- Feed the dog
- Water plants
- Pay bills
- Go get mail
- Put gas in the car
Should really look like:
- Water plants
- Feed the dog
- Go get mail
- Put gas in the car
- Go shopping
- 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.
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
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
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.
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
Then instead of trying to open an issue and change the spec, open an issue with your client/editor to implement automatic kist enumeration.
then your client is out of spec. your two lists in the parent comment have identical numbering in the rendered text.
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. Some 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/
Open Source
All about open source! Feel free to ask questions, and share news, and interesting stuff!
Useful Links
- Open Source Initiative
- Free Software Foundation
- Electronic Frontier Foundation
- Software Freedom Conservancy
- It's FOSS
- Android FOSS Apps Megathread
Rules
- Posts must be relevant to the open source ideology
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
- !libre_culture@lemmy.ml
- !libre_software@lemmy.ml
- !libre_hardware@lemmy.ml
- !linux@lemmy.ml
- !technology@lemmy.ml
Community icon from opensource.org, but we are not affiliated with them.