clipto-pro / Desktop

A comprehensive solution for convenient and efficient work with notes, snippets, clipboard, files, and other information that requires quick access via any device.
193 stars 12 forks source link

Wrong rendering for nested lists in markdown #155

Open snowman55 opened 1 year ago

snowman55 commented 1 year ago

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

clipto renders as:

  1. First item o Indented item o Indented item