I have even tried running str.replace(" ", "* ") but the string replace cannot pickup those gaps even if I copy and paste them from the console log. I would be content with either a way to to it inside the turndown options, or even getting the replace to work. Any thoughts?
But the indented content after rich text editing is like this.
111
2222
3333
.The ideal rule is to increment the count by 2 when encountering a ul, and when encountering an li, to retrieve the content, where the number of spaces in the front end equals the count, followed by a line break.
Right now, it correctly indents doe nested ul lists, but it only adds one bullet instead of one for each level. For example:
produces:
When it should (or I would like it to) produce:
I have even tried running str.replace(" ", "* ") but the string replace cannot pickup those gaps even if I copy and paste them from the console log. I would be content with either a way to to it inside the turndown options, or even getting the replace to work. Any thoughts?