Markdown editor auto-renumbers existing list marker when pressing Enter mid-line #193407
Replies: 1 comment
-
|
π¬ Your Product Feedback Has Been Submitted π Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward β©
Where to look to see what's shipping π
What you can do in the meantime π»
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. β |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
π·οΈ Discussion Type
Bug
Body
Description
When pressing Enter in the middle of a line that contains an ordered list marker mid-text, the markdown editor's auto-list-continuation feature incorrectly modifies the existing number instead of just inserting a line break.
Steps to Reproduce
2.(right after the space followingfirst)Expected Behavior
The line should simply break at the cursor position:
Actual Behavior
The existing
2.is renumbered to3.:Screen.Recording.2026-04-22.at.5.36.06.PM.mov
Analysis
It appears the auto-continuation logic:
1.on the previous line and decides the next list item should be2.2.at the new line position2.that got pushed to the new line3.to avoid duplicationThe editor is incorrectly treating the inline text
2.as a list marker that needs to be auto-managed, rather than preserving it as user-typed content.Environment
Additional Notes
This breaks user intent when writing text that happens to contain numbered references (e.g., "See items 1. foo 2. bar"). The auto-continuation should either:
Beta Was this translation helpful? Give feedback.
All reactions