Skip to content

Nested lists are broken #245

@weavejester

Description

@weavejester

Pegdown 1.6.0 has problems rendering nested lists. This issue also occurs in 1.5.0, 1.4.0 and 1.3.0, so it appears to be a long-standing issue.

* foo
  * bar
<ul>
  <li>foo</li>
  <li>bar</li>
</ul>

Similarly:

* foo

  bar
<ul>
  <li>foo</li>
</ul>
<p>bar</p>

However, if I double the indentation, it works:

* foo
    * bar
<ul>
  <li>foo
    <ul>
      <li>bar</li>
    </ul>
  </li>
</ul>

Looking at the code, it seems like Pegdown treats indentation as either a tab or four spaces, but for lists any whitespace should be treated as indentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions