Markdown cannot format certain lists

Bug #1573064 reported by Peter White
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
markdown (Ubuntu)
New
Undecided
Unassigned

Bug Description

Ran this under markdown, kubuntu 15.10, markdown version 1.0.1 as standard.

The attached markdown file leads to corrupt HTML ("markdown bad.md > bad.html"). Take a look at the html file produced; towards the end several lines are missed and a large hex string is placed there instead.

Happens with more complex files too. I cut them down as much as possible to get to a trivial reproducible scenario.

Since I cannot upload the HTML file, here is what I found.

plw@ubuntu-VirtualBox:~/Dropbox/Work documents$ cat bad.md
# Further notes

## Thing 1

- There are three options.

    - Option 1

    - Option 2

    - Option 3

  Need to cover all of these fairly convincingly.

## Thing 2

A sentence here.

- Option 1

    - Sub bullet A

    A sentence here.

    Another sentence here.

plw@ubuntu-VirtualBox:~/Dropbox/Work documents$ cat bad.html
<h1>Further notes</h1>

<h2>Thing 1</h2>

<ul>
<li><p>There are three options.</p>

<ul>
<li><p>Option 1</p></li>
<li><p>Option 2</p></li>
<li><p>Option 3</p></li>
</ul>

<p>Need to cover all of these fairly convincingly.</p></li>
</ul>
<h2>Thing 2</h2>

A sentence here.

cccc094aa32e49d4513143832552cfc1

<p>A sentence here.</p>

<p><p>Another sentence here.</p></li>
</ul></p>

Revision history for this message
Peter White (plw-plwhite) wrote :
Revision history for this message
Gary R Hook (garyrhook) wrote :

It appears the problem is the paragraph processing when paragraphs are included within list items that contain nested lists.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.