Skip to content

Wrong rendering for nested lists in markdown #155

@snowman55

Description

@snowman55

I have this markdown:

  1. First item

    • Indented item
    • Indented item
  2. Second item

    • Indented item
    • Indented item

which clipto rendered as:

  1. First item

    o Indented item
    o Indented item

  2. Second item

    o Indented item
    o Indented item

Note that there's an extra blank line before the 1st indented line. The extra lines also appears with unordered list.

The proper rendering should be:

  1. First item
    o Indented item
    o Indented item

  2. Second item
    o Indented item
    o Indented item

You can see the issue clearer on a phone vs the computer screen.
Curiously, if the ordered list is mixed with an unordered list, the extra lines problem disappear (but I want a correct list).

i.e. this markdown:

  1. First item
    • Indented item
    • Indented item
  • Second item
    • Indented item
    • Indented item

clipto renders as:

  1. First item
    o Indented item
    o Indented item
  • Second item
    o Indented item
    o Indented item

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions