Skip to content

Markdown Rendering Issue: Ordered Lists Display Incorrectly #585

@PeterDaveHello

Description

@PeterDaveHello

Describe the bug
Markdown rendering in ChatGPTBox incorrectly converts unordered sub-list items into additional ordered list items. This issue was noticed with a specific content structure.

To Reproduce
Steps to reproduce the behavior:

  1. Enter the following markdown content into the ChatGPTBox interface:
    1. Name
        - John
        - Alice
    2. Country
        - Japan
        - Korea
    
  2. The rendered output incorrectly displays as:
    1. Name
        2. John
        3. Alice
    4. Country
        5. Japan
        6. Korea
    

Expected behavior
The correct rendering should preserve the structure of the original ordered list with its unordered sub-lists:

1. Name
   - John
   - Alice
2. Country
   - Japan
   - Korea

Like GitHub or other renderers do:

  1. Name
    • John
    • Alice
  2. Country
    • Japan
    • Korea

Screenshots

image

Please complete the following information):

  • OS: Ubuntu 22.04 LTS
  • Browser: Firefox v120.0.1
  • Extension Version: v2.4.8

Additional context

It's been a while, not just recent versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions