Elementa
Elementa copied to clipboard
Elementa throws NoSuchElementException when using empty lists in Markdown Component
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:
- Create a Markdown Component
- Set the components text content to "-"
- 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.