Notes-up icon indicating copy to clipboard operation
Notes-up copied to clipboard

List display bug in 'View' tab

Open QuinRider opened this issue 4 years ago • 1 comments

Expected Behavior

Having bulleted and numbered lists in sequence should work!

Current Behavior

When writing out bulleted and numbered lists in sequence, the 'View' tab fails to properly display the list types; if a numbered list is followed by a bulleted list, the bulleted list is added to the numerical list instead, and vice-versa.

Possible Solution

I imagine the issue lies in how the lists are being parsed for display in the 'view' tab, however, I haven't done any actual investigation. Maybe a simple flag is being set when the lists are being read, and it's not being updated or changed when the list type changes without other markdown interrupting it?

Steps to Reproduce (for bugs)

  1. Create a numbered list
  • Follow it up with a bulleted list, like this Instead of the expected bullet, '2.' is displayed in the 'view' tab

This issue persists for all of the style-sheets and themes.

Context

This stops me from using this app from taking most of my notes, as I often switch between using bulleted and numbered lists.

Screenshots of the Problem

Edit tab:

image

View tab:

image

Your Environment (for bugs)

  • Notes-Up Version: 2.02 (From AppCentre)
  • OS Info: Elementary OS 5.1.2 Hera
  • Kernel: 5.3.0-40-generic

QuinRider avatar Feb 26 '20 20:02 QuinRider

Indeed, it appears to be the case that any markdown will suffice to 'reset' the list type, including comments.

With markdown comment:

Edit tab: image

View tab: image

Without:

Edit tab: image

View tab: image

Mind the "This is a bulleted item :(" item, that is actually rendered as a numerical item in the second set of images.

QuinRider avatar Feb 26 '20 20:02 QuinRider