We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I type :
```Java
in the EditText (Markwoneditortextwatcher has been set),And an error has occurred:
java.lang.RuntimeException: Prism4j internal error. Number of entry nodes is greater that the text length.Nodes: [TextImpl{literal=''}]
Java code:
markwon = Markwon.builder(activity) .usePlugin(JLatexMathPlugin.create(ConvertUtils.dp2px(18))) .usePlugin(SyntaxHighlightPlugin.create(prism4j, prism4JThemeDarkula)) .usePlugin(TablePlugin.create(activity)) .usePlugin(TaskListPlugin.create(activity)) .usePlugin(GlideImagesPlugin.create(activity)) .usePlugin(StrikethroughPlugin.create()) .usePlugin(HtmlPlugin.create()) .usePlugin(ImagesPlugin.create(plugin -> { plugin.addSchemeHandler(FileSchemeHandler.create()); plugin.addSchemeHandler(DataUriSchemeHandler.create()); plugin.addSchemeHandler(FileSchemeHandler.create()); })) .build(); final MarkwonEditor editor = MarkwonEditor.builder(markwon) .useEditHandler(new EmphasisEditHandler()) .useEditHandler(new StrongEmphasisEditHandler()) .build(); MarkwonEditorTextWatcher textWatcher = MarkwonEditorTextWatcher.withPreRender(editor, Executors.newSingleThreadExecutor(), editText); editText.addTextChangedListener(textWatcher);
The text was updated successfully, but these errors were encountered:
Hello @xiaoyvyv !
I can confirm this issue, thanks for reporting!
Sorry, something went wrong.
The fix is in latest 4.2.2-SNAPSHOT
4.2.2-SNAPSHOT
No branches or pull requests
Markwon version: 4.2.1
When I type :
in the EditText (Markwoneditortextwatcher has been set),And an error has occurred:
Java code:
The text was updated successfully, but these errors were encountered: