Elementa icon indicating copy to clipboard operation
Elementa copied to clipboard

Elementa throws NoSuchElementException when using empty lists in Markdown Component

Open BlackBeltPanda opened this issue 3 years ago • 0 comments

Describe the bug When trying to create a Markdown Component with a character that's also a markdown prefix, such as a single hyphen ("-") which normally denotes a list, Elementa will throw a NoSuchElementException and not render the screen.

To Reproduce Steps to reproduce the behavior:

  1. Create a Markdown Component
  2. Set the components text content to "-"
  3. See error

Expected behavior A list prefix with no other content should probably just render the prefix itself.

Additional context It's possible that the same would occur for other elements that expect a markdown prefix to be followed by some content, but I haven't tested that to make sure.

BlackBeltPanda avatar Mar 21 '22 16:03 BlackBeltPanda