Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintain User-Defined Numbering in Ordered Lists #490

Open
PRINCE105524 opened this issue Nov 18, 2024 · 0 comments
Open

Maintain User-Defined Numbering in Ordered Lists #490

PRINCE105524 opened this issue Nov 18, 2024 · 0 comments

Comments

@PRINCE105524
Copy link

PRINCE105524 commented Nov 18, 2024

  • Markwon version: {4.6.2}

Expected Behavior

When rendering an ordered list, Markwon should maintain the numbering provided by the user without automatically renumbering the items. For example, if the user inputs:

1. item 1
5. item 5
3. item 3

The rendered output should match the user input:

1. item 1
5. item 5
3. item 3

Actual Behavior

Currently, Markwon automatically renumbers ordered list items. The input above is rendered as:

1. item 1
2. item 5
3. item 3

Steps to Reproduce

  1. Use the Markwon library in an Android project to render a simple ordered list with user-defined numbers that are not sequential.
    
  2. Observe that the list is renumbered when displayed in the app's UI.
    

Sample Markdown Used:

1. item 1
5. item 5
3. item 3

Expected outcome: The numbers should be displayed exactly as provided by the user, similar to how a WhatsApp-like messaging application functions. Users do not want the list to be altered when they manually adjust the numbering while providing input.

Actual outcome: The numbers are adjusted to be sequential.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant