Revert "Fix italic text is truncated when bubble mode and markdown is enabled."
This reverts commit f63c6c328f
.
This commit is contained in:
parent
f63c6c328f
commit
c788deacf5
|
@ -27,7 +27,6 @@ package im.vector.app.features.html
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.res.Resources
|
import android.content.res.Resources
|
||||||
import android.graphics.Typeface
|
|
||||||
import android.graphics.drawable.Drawable
|
import android.graphics.drawable.Drawable
|
||||||
import android.text.Spannable
|
import android.text.Spannable
|
||||||
import androidx.core.text.toSpannable
|
import androidx.core.text.toSpannable
|
||||||
|
@ -41,7 +40,6 @@ import im.vector.app.features.settings.VectorPreferences
|
||||||
import io.noties.markwon.AbstractMarkwonPlugin
|
import io.noties.markwon.AbstractMarkwonPlugin
|
||||||
import io.noties.markwon.Markwon
|
import io.noties.markwon.Markwon
|
||||||
import io.noties.markwon.MarkwonPlugin
|
import io.noties.markwon.MarkwonPlugin
|
||||||
import io.noties.markwon.MarkwonSpansFactory
|
|
||||||
import io.noties.markwon.PrecomputedFutureTextSetterCompat
|
import io.noties.markwon.PrecomputedFutureTextSetterCompat
|
||||||
import io.noties.markwon.ext.latex.JLatexMathPlugin
|
import io.noties.markwon.ext.latex.JLatexMathPlugin
|
||||||
import io.noties.markwon.ext.latex.JLatexMathTheme
|
import io.noties.markwon.ext.latex.JLatexMathTheme
|
||||||
|
@ -52,8 +50,6 @@ import io.noties.markwon.inlineparser.EntityInlineProcessor
|
||||||
import io.noties.markwon.inlineparser.HtmlInlineProcessor
|
import io.noties.markwon.inlineparser.HtmlInlineProcessor
|
||||||
import io.noties.markwon.inlineparser.MarkwonInlineParser
|
import io.noties.markwon.inlineparser.MarkwonInlineParser
|
||||||
import io.noties.markwon.inlineparser.MarkwonInlineParserPlugin
|
import io.noties.markwon.inlineparser.MarkwonInlineParserPlugin
|
||||||
import me.gujun.android.span.style.CustomTypefaceSpan
|
|
||||||
import org.commonmark.node.Emphasis
|
|
||||||
import org.commonmark.node.Node
|
import org.commonmark.node.Node
|
||||||
import org.commonmark.parser.Parser
|
import org.commonmark.parser.Parser
|
||||||
import org.matrix.android.sdk.api.MatrixUrls.isMxcUrl
|
import org.matrix.android.sdk.api.MatrixUrls.isMxcUrl
|
||||||
|
@ -127,11 +123,6 @@ class EventHtmlRenderer @Inject constructor(
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
.usePlugin(object : AbstractMarkwonPlugin() {
|
.usePlugin(object : AbstractMarkwonPlugin() {
|
||||||
override fun configureSpansFactory(builder: MarkwonSpansFactory.Builder) {
|
|
||||||
builder.setFactory(
|
|
||||||
Emphasis::class.java
|
|
||||||
) { _, _ -> CustomTypefaceSpan(Typeface.create(Typeface.DEFAULT, Typeface.ITALIC)) }
|
|
||||||
}
|
|
||||||
override fun configureParser(builder: Parser.Builder) {
|
override fun configureParser(builder: Parser.Builder) {
|
||||||
/* Configuring the Markwon block formatting processor.
|
/* Configuring the Markwon block formatting processor.
|
||||||
* Default settings are all Markdown blocks. Turn those off.
|
* Default settings are all Markdown blocks. Turn those off.
|
||||||
|
|
Loading…
Reference in New Issue