hey-red / Markdown

Open source C# implementation of Markdown processor, as featured on Stack Overflow.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid auto-newlines in multi-line ordered lists

GoogleCodeExporter opened this issue · comments

What steps will reproduce the problem?
Transform the following text with  AutoNewlines option set to true:

1. Line1
   Line2

   Line3
   Line4

2. Suspendisse id sem consectetuer libero luctus adipiscing

Expected output:
<ol>
<li><p>Line1<br>
Line2</p>

<p>Line3<br>
Line4</p></li>
</ol>

Actual output:
<ol>
<li><p>Line1<br
Line2</p>

<p>Line3<br
Line4</p></li>
</ol>

Original issue reported on code.google.com by eug.bara...@gmail.com on 22 Dec 2010 at 7:18

Oh, just noticed that this is not a defect but rather lacking of good default 
value for  MarkdownOptions.EmptyElementSuffix

Original comment by eug.bara...@gmail.com on 22 Dec 2010 at 7:27

Here's a patch that modifies the constructor to only read EmptyElementSuffix 
value from the MarkdownOptions object if MarkdownOptions.EmptyElementSuffix is 
not null or empty.

Original comment by cagdaste...@gmail.com on 4 Feb 2011 at 2:59

Attachments:

nice, good catch, will add that

Original comment by wump...@gmail.com on 28 Feb 2011 at 5:01

  • Changed state: Accepted
Issue 41 has been merged into this issue.

Original comment by wump...@gmail.com on 28 Feb 2011 at 5:03