Skip to content
This repository was archived by the owner on Aug 6, 2020. It is now read-only.

Consecutive lists causes weird formatting #1

Open
egil opened this issue Jul 9, 2011 · 0 comments
Open

Consecutive lists causes weird formatting #1

egil opened this issue Jul 9, 2011 · 0 comments
Labels

Comments

@egil
Copy link
Owner

egil commented Jul 9, 2011

More lists after each other causes problems, some of the items have their content wrapped in <p> tags.

Example input:

*   Red
*   Green
*   Blue

+   Red
+   Green
+   Blue

-   Red
-   Green
-   Blue

Resulting HTML:

<ul>
<li>Red</li>
<li>Green</li>
<li><p>Blue</p></li>
<li><p>Red</p></li>
<li>Green</li>
<li><p>Blue</p></li>
<li><p>Red</p></li>
<li>Green</li>
<li>Blue</li>
</ul>

Expected output:

<ul>
<li>Red</li>
<li>Green</li>
<li>Blue</li>
</ul>
<ul>
<li>Red</li>
<li>Green</li>
<li>Blue</li>
</ul>
<ul>
<li>Red</li>
<li>Green</li>
<li>Blue</li>
</ul>

Note: This issue also exists in the unmodified version of php-markdown (and GFM as well it seems).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant