I got a problem with UL followed by by OL
 when I using perl module "Text-Markdown-1.0.5".

I wrote the following markdown code.
- a
- b

1. 1
2. 2
I expected that Text-Markdown would produce the following HTML.
<ul>
<li>a</li>
<li>b</li>
</ul>
<ol>
<li>1</li>
<li>2</li>
</ol>
However, "Text-Markdown-1.0.5" generated the following HTML.
<ul>
<li>a</li>
<li><p>b</p></li>
<li><p>1</p></li>
<li>2</li>
</ul>
At least for me, this is not intuitive.

I attached a patch for "Markdown.pm" in "Text-Markdown-1.0.5".
And, I also attached a simple test for the above.
I checked that patched "Text-Markdown" returns the same result as I expected.

Attachment: diff_ul_ol.patch
Description: Binary data

Attachment: ul_ol.t
Description: Troff document

_______________________________________________
Markdown-Discuss mailing list
[email protected]
http://six.pairlist.net/mailman/listinfo/markdown-discuss

Reply via email to