noties / Markwon

Android markdown library (no WebView)
https://noties.io/Markwon/
Apache License 2.0
2.68k stars 298 forks source link

Linkify plugin not working with RecyclerViews #395

Open qwerty287 opened 2 years ago

qwerty287 commented 2 years ago

Hello,

we've switched from TextViews to RecyclerViews for MD rendering with Markwon some time ago to support advanced features like tables in a way they are really usable. Everything's working well, except the linkify plugin. It's enabled, but links are not highlighted or clickable.

markwon = Markwon.builder(context).usePlugin(CorePlugin.create())
    // ... other plugins
    .usePlugin(LinkifyPlugin.create(true))
    .build();

adapter = MarkwonAdapter.builderTextViewIsRoot(R.layout.custom_markdown_adapter).build();

recyclerView.setAdapter(adapter);
adapter.setMarkdown(markwon, md);
adapter.notifyDataSetChanged();