Skip to content

Multi-paragraph list items don't (always?) work, example inside #1172

@ell1e

Description

@ell1e

This is accepted by most other major markdown renderers I have tried, but python markdown doesn't seem to like multiple paragraphs in a list item - at least not indented like here:

Input:

* abcd.
  this is paragraph 1.

  efgh

* blubb

Expected output (Github):

  • abcd.
    this is paragraph 1.

    efgh

  • blubb

Actual output (python markdown):

>>> markdown.markdown("* abcd.\n  this is paragraph 1.\n\n  efgh\n\n* blubb")
'<ul>\n<li>abcd.\n  this is paragraph 1.</li>\n</ul>\n<p>efgh</p>\n<ul>\n<li>blubb</li>\n</ul>'
>>> 

(two separate <ul> lists, and efgh is not part of first list item as expected)

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThe issue has been previously reported.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions