codex-team / codex-team/editor.js
renderFromHTML does not properly render nestedlist
- Dominant language
- TypeScript
- Stars
- 31.9k
- Forks
- 2.2k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
My flow in a project is to get some text in markdown format from an API then convert to it html using [markdown-it](https://github.com/markdown-it/markdown-it) and then use renderFromHTML utility on editorjs. I've tried few stuff and its working great but when I try to add a nested list using html it does render it but append nested list as a normal list in the end. Let me show you what I mean.
Steps to reproduce:
1. This is a nested list code from w3school:

2. Now when let's paste this html code inside renderFromHTML

3. Now this is the output:

Expected behavior:

**OS**: Ubuntu 20.04.6 LTS
**Browser**: FireFox
**Editor.js version**: 2.27.0
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.