-
Notifications
You must be signed in to change notification settings - Fork 136
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
Combination of italic with custom markdown element not working #97
Comments
I tried parsing with your custom element and it works fine. The last merged PRs haven't been published yet, though. Do you possibly use the latest version (1.7.1)? If yes, could you check if switching to the |
@gaebel Yep, you are right. I provided a not correct example, sorry - that is my bad. If be more correct - parsing result for let test = """
++_**Mixed U/I/B Cras non erat dolor. In euismod laoreet iaculis. Aliquam viverra rutrum dui, at volutpat orci tempus et.**_++
**_++Mixed B/I/U Cras non erat dolor. In euismod laoreet iaculis. Aliquam viverra rutrum dui, at volutpat orci tempus et.++_**
""" Result Looks like order makes sense. |
I've made some changes to the regex, and the attribute inheritance. This should be fixed now. |
@gaebel Release this fix please |
Reproducible for the case when text has mixed text-decoration style with custom markdown element. In my case. I have the custom element that not supports by markdown be default - underline(++). I implement the custom markdown element for parsing (like MarkdownStrikethrough).
But parsing result is not correct, for example for text
**_++Lorem ipsum++_**
will be produced the attributed text:_++Lorem ipsum++_
If I change the regex to
(.?|^)(\\*|_)(?=\\S)(.+?)(?<=\\S)(\\2)
,that was implemented for fix, the parsing result is correct.The text was updated successfully, but these errors were encountered: