-
Notifications
You must be signed in to change notification settings - Fork 300
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
java.lang.IllegalArgumentException: Cannot add two delimiter processors for char '~' and minimum length 1 #271
Comments
Oh no. What's the input markdown? Just the section with tildes ( |
It seems the issue is at runtime when the parser/renderer initializes. No need to invoke it. |
Right, sorry (I hadn't looked at the stack trace because I was on mobile). So I guess another extension also registers a delimiter processor for So in 0.20.0 we adjusted the strikethrough extension to also handle single tildes, same as GitHub. So that is now a genuine conflict of syntaxes. For that case we should probably add an option to configure the strikethrough extension to require double tildes, so that there's no conflict. What do you think? |
Thanks for your answer. I confirm the issue is caused by the conflict with the SubscriptExtension which shares the same delimiter.
This would be really appreciated! |
Prepared a fix in #272 It also improves the documentation and the error message mentions which delimiter processors conflict, which would have helped too for this. |
…ildes Add `requireTwoTildes` for `StrikethroughExtension` (fixes #271)
Using version 0.20.0 of commonmark-java with strikethrough extension leads to this exception at runtime:
Gradle dependencies used are:
The renderer is initialized as follows:
Removing
StrikethroughExtension.create()
from the list of extensions or downgrading to version 0.19.0 fixes the issue.The text was updated successfully, but these errors were encountered: