-
Notifications
You must be signed in to change notification settings - Fork 119
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
IndexError when parsing unfinished-link-like text #98
Comments
Hi @pelid, the |
I don't know what the best behaviour would be, but a random exception is likely the worst possible solution. A better behaviour would be a sane, catchable mistletoe exception on invalid markdown. However, it could be argued that it is just text that, on first sight, looks like possibly markdown, while it is in fact just text. It could be a weird smiley: |
Output from `shift_whitespace()` was not checked at 2 places.
Fixed in the master. This turned out to be a very simple one. :) So I don't even add unit tests this time. |
Got unexpected
IndexError
during rendering of preview for user input. Steps to reproduce are below:Looks like a bug.
Was used mistletoe of version 0.7.2.
The text was updated successfully, but these errors were encountered: