This is how the quill takes it:
<ol><li>this is a text</li><li>this 2nd line</li><li class="ql-indent-1">this is nested</li><li class="ql-indent-1">this is also nested</li><li class="ql-indent-2">this is further nested</li></ol>
however when I render this data on the screen using
//assuming the data is the quill data
<div dangerouslySetInnerHTML={{__html: data}}/>
then what is rendered on the screen is:
- this is a text
- this 2nd line
- this is nested
- this is also nested
- this is further nested
one thing I do understand is because html doesn't identify ql-indent-2 and such classes so it does this. Is there anyway in which the nesting can be kept intact? I'm using nextjs as the JavaScript framework.