Skip to content

Commit

Permalink
Add gif & tables plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jmattheis committed Apr 14, 2019
1 parent 5a9fced commit ef6ea30
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ dependencies {
implementation 'com.hypertrack:hyperlog:0.0.10'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'ru.noties.markwon:core:3.0.0'
implementation 'ru.noties.markwon:image-gif:3.0.0'
implementation 'ru.noties.markwon:ext-tables:3.0.0'
}

configurations {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
import java.util.List;
import ru.noties.markwon.Markwon;
import ru.noties.markwon.core.CorePlugin;
import ru.noties.markwon.ext.tables.TablePlugin;
import ru.noties.markwon.image.ImagesPlugin;
import ru.noties.markwon.image.gif.GifPlugin;
import ru.noties.markwon.movement.MovementMethodPlugin;

public class ListMessageAdapter extends BaseAdapter {
Expand All @@ -45,11 +47,14 @@ public class ListMessageAdapter extends BaseAdapter {
this.picasso = picasso;
this.items = items;
this.delete = delete;

this.markwon =
Markwon.builder(context)
.usePlugin(CorePlugin.create())
.usePlugin(MovementMethodPlugin.create())
.usePlugin(ImagesPlugin.create(context))
.usePlugin(TablePlugin.create(context))
.usePlugin(GifPlugin.create())
.build();
}

Expand Down

0 comments on commit ef6ea30

Please sign in to comment.