From 0c76178bee7e86adba73f114a2a2127e460519c3 Mon Sep 17 00:00:00 2001 From: ganfra Date: Fri, 15 Mar 2019 19:28:13 +0100 Subject: [PATCH] Markwon : update method name --- .../features/html/EventHtmlRenderer.kt | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/app/src/main/java/im/vector/riotredesign/features/html/EventHtmlRenderer.kt b/app/src/main/java/im/vector/riotredesign/features/html/EventHtmlRenderer.kt index 2ecee7954b..15843d8a18 100644 --- a/app/src/main/java/im/vector/riotredesign/features/html/EventHtmlRenderer.kt +++ b/app/src/main/java/im/vector/riotredesign/features/html/EventHtmlRenderer.kt @@ -73,40 +73,40 @@ private class MatrixPlugin private constructor(private val glideRequests: GlideR override fun configureHtmlRenderer(builder: MarkwonHtmlRenderer.Builder) { builder - .addHandler( + .setHandler( "img", ImageHandler.create()) - .addHandler( + .setHandler( "a", MxLinkHandler(glideRequests, context, session)) - .addHandler( + .setHandler( "blockquote", BlockquoteHandler()) - .addHandler( + .setHandler( "sub", SubScriptHandler()) - .addHandler( + .setHandler( "sup", SuperScriptHandler()) - .addHandler( + .setHandler( asList("b", "strong"), StrongEmphasisHandler()) - .addHandler( + .setHandler( asList("s", "del"), StrikeHandler()) - .addHandler( + .setHandler( asList("u", "ins"), UnderlineHandler()) - .addHandler( + .setHandler( asList("ul", "ol"), ListHandler()) - .addHandler( + .setHandler( asList("i", "em", "cite", "dfn"), EmphasisHandler()) - .addHandler( + .setHandler( asList("h1", "h2", "h3", "h4", "h5", "h6"), HeadingHandler()) - .addHandler("mx-reply", + .setHandler("mx-reply", MxReplyTagHandler()) }