toptensoftware / markdowndeep

Open-source implementation of Markdown for C# and Javascript
268 stars 120 forks source link

Nested lists do not work #4

Closed kamranayub closed 13 years ago

kamranayub commented 13 years ago

This construct doesn't work:

  1. List Item 1
    • List 2 - Item 1
    • List 2 - Item 2
  2. List Item 2

That's:

1. List Item 1
    - List 2
2. List Item 2

I am assuming other types of nested lists also are broken.

toptensoftware commented 13 years ago

Confirmed this is a bug when nesting a "ul in li" or "li in ul" and the nested list doesn't have at least 4 leading spaces.

toptensoftware commented 13 years ago

Fixed!