this post was submitted on 22 Jul 2024
509 points (99.4% liked)
Programmer Humor
19817 readers
144 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Edit: No idea what's up with the formatting. In my app this shows as step 5 but it seems to render as step 1. Is the Lemmy DB done in CSS?
Lemmy is fine, it depends on the markdown parser/renderer. Markdown allows you to use any numbers for numbered lists and the renderer is supposed to display them corrected.
As you can imagine that leaves a lot of ambiguity
For me it shows as step 5, in Firefox on Android using web browser interface. Also I can view your source which shows as simply "5. Go...", so it is definitely your app.
Weird! Thanks for letting me know. I guess that's what I get for using an app (Sync) that the developer abandons for months at a time.
Problem in this case is the specification is vague on what the 'correct' thing to display is.
It's not the best UI, but you can also view your comment from a standard web browser, just to see how it looks. The advantage to the web browser is that it is always by definition maximally up-to-date:-) - though its baseline functionality may still be lower than an app if the latter is done well.
Put a slash before the dot, like
5\.
:This is a Markdown issue really. Starting a line with a number and then a dot turns that line into an item in an ordered list. The most common behaviour (that I've seen) is to start that list from 1, regardless of what number is used. The intent is to make it easy to add items later without renumbering everything, for living documents at least.