markdown-js icon indicating copy to clipboard operation
markdown-js copied to clipboard

Doesn't split lists up

Open tcoopman opened this issue 10 years ago • 2 comments

I have some markdown like this:

* one
* two
* list
  * x
  * 1
  * 2
    * 3
    * 4


1. test
2. test2
  1. x
  1. y

This renders incorrectly as:

<ul>
    <li>one</li>
    <li>two</li>
    <li>
        <p>list</p>
        <ul>
            <li>x</li>
            <li>1</li>
            <li>
                <p>2</p>
                <ul>
                    <li>3</li>
                    <li>
                        <p>4</p>
                    </li>
                </ul>
            </li>
        </ul>
    </li>
    <li>
        <p>test</p>
    </li>
    <li>test2
        <ol>
            <li>x</li>
            <li>y</li>
        </ol>
    </li>
</ul>

Instead of (correct):

<ul>
    <li>one</li>
    <li>two</li>
    <li>list
        <ul>
            <li>x</li>
            <li>1</li>
            <li>2
                <ul>
                    <li>3</li>
                    <li>4</li>
                </ul>
            </li>
        </ul>
    </li>
</ul>
<ol>
    <li>test</li>
    <li>test2
        <ol>
            <li>x</li>
            <li>y</li>
        </ol>
    </li>
</ol>

tcoopman avatar Aug 21 '14 14:08 tcoopman

+1 Question

pzxwhc avatar May 25 '16 16:05 pzxwhc

+1 same here

tinnerdxp avatar Sep 21 '17 12:09 tinnerdxp