mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-25 10:55:55 +03:00
Markwon : update method name
This commit is contained in:
parent
c12bc5e02d
commit
0c76178bee
1 changed files with 12 additions and 12 deletions
|
@ -73,40 +73,40 @@ private class MatrixPlugin private constructor(private val glideRequests: GlideR
|
||||||
|
|
||||||
override fun configureHtmlRenderer(builder: MarkwonHtmlRenderer.Builder) {
|
override fun configureHtmlRenderer(builder: MarkwonHtmlRenderer.Builder) {
|
||||||
builder
|
builder
|
||||||
.addHandler(
|
.setHandler(
|
||||||
"img",
|
"img",
|
||||||
ImageHandler.create())
|
ImageHandler.create())
|
||||||
.addHandler(
|
.setHandler(
|
||||||
"a",
|
"a",
|
||||||
MxLinkHandler(glideRequests, context, session))
|
MxLinkHandler(glideRequests, context, session))
|
||||||
.addHandler(
|
.setHandler(
|
||||||
"blockquote",
|
"blockquote",
|
||||||
BlockquoteHandler())
|
BlockquoteHandler())
|
||||||
.addHandler(
|
.setHandler(
|
||||||
"sub",
|
"sub",
|
||||||
SubScriptHandler())
|
SubScriptHandler())
|
||||||
.addHandler(
|
.setHandler(
|
||||||
"sup",
|
"sup",
|
||||||
SuperScriptHandler())
|
SuperScriptHandler())
|
||||||
.addHandler(
|
.setHandler(
|
||||||
asList<String>("b", "strong"),
|
asList<String>("b", "strong"),
|
||||||
StrongEmphasisHandler())
|
StrongEmphasisHandler())
|
||||||
.addHandler(
|
.setHandler(
|
||||||
asList<String>("s", "del"),
|
asList<String>("s", "del"),
|
||||||
StrikeHandler())
|
StrikeHandler())
|
||||||
.addHandler(
|
.setHandler(
|
||||||
asList<String>("u", "ins"),
|
asList<String>("u", "ins"),
|
||||||
UnderlineHandler())
|
UnderlineHandler())
|
||||||
.addHandler(
|
.setHandler(
|
||||||
asList<String>("ul", "ol"),
|
asList<String>("ul", "ol"),
|
||||||
ListHandler())
|
ListHandler())
|
||||||
.addHandler(
|
.setHandler(
|
||||||
asList<String>("i", "em", "cite", "dfn"),
|
asList<String>("i", "em", "cite", "dfn"),
|
||||||
EmphasisHandler())
|
EmphasisHandler())
|
||||||
.addHandler(
|
.setHandler(
|
||||||
asList<String>("h1", "h2", "h3", "h4", "h5", "h6"),
|
asList<String>("h1", "h2", "h3", "h4", "h5", "h6"),
|
||||||
HeadingHandler())
|
HeadingHandler())
|
||||||
.addHandler("mx-reply",
|
.setHandler("mx-reply",
|
||||||
MxReplyTagHandler())
|
MxReplyTagHandler())
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue