Skip to content

Unable to handle combination of ordered and unordered list #173

Open
@AdarshPawar29

Description

@AdarshPawar29

The markdown I am writing in my editor:

1. Hello there!
 - hi
 - hi
2. Hello there!
 - hi

Markdown I get after converting markdownToDraft:

1. Hello there!
 - hi
 - hi
1. Hello there!
 - hi

rawObject:

  "entityMap": {},
  "blocks": [
    {
      "depth": 0,
      "type": "unstyled",
      "text": "`1. Hello there!",
      "entityRanges": [],
      "inlineStyleRanges": []
    },
    {
      "depth": 0,
      "type": "unordered-list-item",
      "text": "hi",
      "inlineStyleRanges": [],
      "entityRanges": []
    },
    {
      "depth": 0,
      "type": "unordered-list-item",
      "text": "hi",
      "inlineStyleRanges": [],
      "entityRanges": []
    },
    {
      "depth": 0,
      "type": "ordered-list-item",
      "text": "Hello there!",
      "inlineStyleRanges": [],
      "entityRanges": []
    },
    {
      "depth": 0,
      "type": "unordered-list-item",
      "text": "hi`",
      "inlineStyleRanges": [],
      "entityRanges": []
    }
  ]
}```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions