turndown icon indicating copy to clipboard operation
turndown copied to clipboard

Is there a way to have a bullet for each level of indentation in nested lists?

Open oscadev opened this issue 1 year ago • 2 comments

Right now, it correctly indents doe nested ul lists, but it only adds one bullet instead of one for each level. For example:

<ul>
          <li>item 1</li>
          <li>item 2</li>
          <ul>
                  <li/>sublist item 1</li>
          </ul>
<ul/>

produces:

  • item 1
  • item 2
    • sublist item 1

When it should (or I would like it to) produce:

  • item 1
  • item 2
    • sublist item 1

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?

oscadev avatar Aug 18 '23 19:08 oscadev