-
Notifications
You must be signed in to change notification settings - Fork 14
Empty string input crashes #8
Comments
I'm having this issue with the following markdown file https://raw.githubusercontent.com/yahoo/gifshot/master/README.md Is there any idea on how to solve this in Prism4j? |
Hello @Meisolsson ! At first I thought those 2 issues are unreleated. As markdown file that you'd linked does not contain empty code blocks. Then I have found out that the block that fails is: <script src='gifshot.js'></script> which does not make sense as it is not empty. If you change |
Alright, any idea how to solve it? I'm guessing that the check causing the crash is required for something else. |
The fix must be implemented in the library - |
Only `matchGrammar` on non-empty strings. Also added a maven publish setup for easier publishing to maven local for testing.
Is this fix published or we need to do some dependency workaround to include a fork? Mine version is 2.0.0, which seems to be the latest, and it's failing for this markdown file: https://github.com/adambard/learnxinyminutes-docs/blob/master/amd.html.markdown (disregard the frontmatter since it's not being passed to the markown -> prism4j library). |
noties/Markwon#192
The text was updated successfully, but these errors were encountered: