Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elementa throws NoSuchElementException when using empty lists in Markdown Component #49

Open
BlackBeltPanda opened this issue Mar 21, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@BlackBeltPanda
Copy link
Contributor

BlackBeltPanda commented Mar 21, 2022

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 BlackBeltPanda added the bug Something isn't working label Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant