Incorrect "numbered lists" #109851
-
Select Topic AreaBug Feature AreaIssues BodyThe next paragraph contains of the following source: The paragraph:
Actual screenshot: Guidelines |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
|
Hi there @kuraga, Would you mind sharing a bit more about where in GitHub you're experiencing this and if you're experiencing it across the platform? Thanks! |
Beta Was this translation helpful? Give feedback.
This comment has been minimized.
This comment has been minimized.
-
|
Since you can't rely on the automatic Markdown numbering in Issues for this specific case, you have to bypass it and create the numbering manually. Workarounds for You (to get the visual appearance you want)Manual Numbering with HTML Line Breaks (Most Reliable Visually): Treat each item as a separate line of text and force line breaks. This prevents Markdown from trying (and failing) to make a proper list.
Result: This will display the text exactly as written, with the numbers 5, 7, and 10 visible, each on its own line. It won't have list indentation. Manual Numbering (Simpler, might have spacing issues): Type the lines directly. Sometimes Markdown adds extra paragraph spacing between lines like this, sometimes not.
Result: Visually similar to option 1, but spacing might be less predictable than using < br> HTML List with value Attribute (Might work, might be stripped): You could try using the HTML < li> tag's value attribute. GitHub might respect this, but it also might strip it out for security/consistency. Result: If GitHub renders the value attribute, this would be the semantically correct way to get 5., 7., 10. with list indentation. If it ignores value, it will likely render as 1., 2., 3. or possibly 5., 6., 7.. Worth a quick test in the preview. The bug is that GitHub Issues doesn't render 5. Item as 5. Item. The workaround is to manually type the 5. yourself and format the lines so Markdown doesn't try to auto-number them (using < br> is often best for this). |
Beta Was this translation helpful? Give feedback.

@kuraga I chatted with some of our Markdown experts and this is actually expected and standard behavior - thanks for allowing me to learn something new.
The reasoning is that it is more ergonomic - think in instances where you'd want to add an item between "first" and "second" then you don't have to change all the numbers - you just add another number and GitHub takes care of making it sequential.
Here is the markdown doc that share a bit more on the formatting.