Markdown cannot format certain lists
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-
# 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-
<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.
</ul>
<h2>Thing 2</h2>
A sentence here.
cccc094aa32e49d
<p>A sentence here.</p>
<p><p>Another sentence here.</p></li>
</ul></p>
It appears the problem is the paragraph processing when paragraphs are included within list items that contain nested lists.