Skip to content

Commit

Permalink
Use table aware movement plugin
Browse files Browse the repository at this point in the history
Fixes #136
  • Loading branch information
jmattheis committed Feb 14, 2021
1 parent 4a1eb50 commit e7b376a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import com.squareup.picasso.Picasso;
import io.noties.markwon.Markwon;
import io.noties.markwon.core.CorePlugin;
import io.noties.markwon.ext.tables.TableAwareMovementMethod;
import io.noties.markwon.ext.tables.TablePlugin;
import io.noties.markwon.image.picasso.PicassoImagesPlugin;
import io.noties.markwon.movement.MovementMethodPlugin;
Expand Down Expand Up @@ -62,7 +63,7 @@ public class ListMessageAdapter extends RecyclerView.Adapter<ListMessageAdapter.
this.markwon =
Markwon.builder(context)
.usePlugin(CorePlugin.create())
.usePlugin(MovementMethodPlugin.create())
.usePlugin(MovementMethodPlugin.create(TableAwareMovementMethod.create()))
.usePlugin(PicassoImagesPlugin.create(picasso))
.usePlugin(TablePlugin.create(context))
.build();
Expand Down

0 comments on commit e7b376a

Please sign in to comment.